Mucommander ant build file3/11/2023 Running Ant build files in a separate JRE is the default setting. Disable the option Provide proposals for user defined tasks.Open menu Window > Preferences > Ant > Editor > Content Assist.Rational Application Developer accesses JAR files to provide code completion proposals for Ant build filesĭisable the code proposals for Ant build files As a result, no error message about the file loaded in cache can be shown.Īpply one of the solutions below to resolve the issue. The JAR file is held by Ant because of the way it uses the classloader via useCache.Įclipse is not able to determine why the file is locked. ![]() The cache will not be used only if setUseCaches(false) is called before getInputStream() on the JarURLConnectionObject. This is what Ant is doing with the files on the classPath. When a connection to a URL object with the JAR protocol is opened, the underlying JAR file is cached and the file will stay in the cache until the JVM is closed. Static class MyAntMain extends Main void exit(int exitCode), null, null) įile jar = new File("c:/test/antTest/lib/") If you then try to delete a file referenced in the classpath, you will not be able to do so. ![]() You can reproduce the problem scenario with a simple Java application (see the code below) and with an Ant build script as described above. This problem is not specific to Rational Application Developer. Rational Application Developer has to access the JAR files to provide the code completion proposals. ![]() You will not be able to delete a JAR file that contains user defined Ant tasks that are also registered within Rational Application Developer.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |