java - What are some tips on shortening the classpath in ant? -
While deploying my application on the Hudson Server (Windows machine), I'm having trouble calling java.exe because my class-path is too long - Windows taps after a few lengths.
Assume that the lower squared will be very large if every jar is clear To be listed in the form space: What can I do in ant to reduce my squares? You can do Google for the wages if you want to do it yourself, a "blank" Generate a jar file, which contains only one manifest, add the "class-path: a.jar, other .jer, bli-blub.zer" line containing all the necessary jars in the manifest. (Google for "manifest class-path") (can be done with an ant) provided that all jars have been deployed AAS, usually you just need a blank "jar file" that was on the classpath Because JVM will now use the manifest to find all other jars. Classpath basically hundreds of
jar files separated by semicolons
& lt; Path id = "classpath.project" & gt; & Lt; Fileset dir = "lib" includes = "** / * .jar" /> & Lt; / Path & gt;
Comments
Post a Comment