There is a bunch of my jar package for my ant script's manifest class-path attribute to create jar packages, all of them Are in a specific folder.
I do not want to code it hard, how can I get them automatically?
& lt; Jar Jarfil = "$ {client_deploy_dir} / helloverald.jor" based = "$ {client_work_dir} / compiled" & gt; & Lt; Appearance & gt; & Lt; Attribute Name = "Main-Class" value = "HelloWald.main" /> & Lt; Attribute name = "class-path" value = "???" /> & Lt; / Reveal & gt; & Lt; / Jar & gt;
thanks
You are on the right track, use Magnestclass Path The working filefile attribute is used to create relative links of jars present in the fileset.
& lt; Manifestclasspath property = "jar.classpath" finefile = "$ {client_work_dir} /HelloWorld.jar" & gt; & Lt; Classpath & gt; & Lt; Fileset name = "" dir = "$ {client_work_dir} / lib" contains = "* .jar" /> & Lt; / Classpath & gt; & Lt; / Manifestclasspath & gt; & Lt; Jar Jarfile = "$ {client_deploy_dir} / HelloWorld.js" based = "$ {client_work_dir} / compiled" & gt; & Lt; Appearance & gt; & Lt; Attribute Name = "Main-Class" value = "HelloWald.main" /> & Lt; Attribute name = "class-path" value = "" $ {jar.classpath} "/> gt; & lt; / manifest & gt; & lt; / jar & gt;
Comments
Post a Comment