Guest User

Untitled

a guest
Apr 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
  2. <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  3. <pathconvert property="run.classpath.without.build.classes.dir">
  4. <path path="${run.classpath}"/>
  5. <map from="${build.classes.dir.resolved}" to=""/>
  6. </pathconvert>
  7. <pathconvert pathsep=" " property="jar.classpath">
  8. <path path="${run.classpath.without.build.classes.dir}"/>
  9. <chainedmapper>
  10. <flattenmapper/>
  11. <globmapper from="*" to="lib/*"/>
  12. </chainedmapper>
  13. </pathconvert>
  14. <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  15. <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  16. <fileset dir="${build.classes.dir}"/>
  17. <manifest>
  18. <attribute name="Main-Class" value="${main.class}"/>
  19. <attribute name="Class-Path" value="${jar.classpath}"/>
  20. </manifest>
  21. </copylibs>
  22. <echo>To run this application from the command line without Ant, try:</echo>
  23. <property location="${dist.jar}" name="dist.jar.resolved"/>
  24. <echo>java -jar "${dist.jar.resolved}"</echo>
  25. </target>
  26.  
  27. <attribute name="Class-Path" value="${jar.classpath}"/>
  28.  
  29. <attribute name="Class-Path" value="${jar.classpath} /lib"/>
  30.  
  31. <target depends="init" name="-do-clean">
  32. <delete dir="${build.dir}"/>
  33. <delete file="${dist.jar}"/>
  34. <delete dir="${dist.dir}/lib"/>
  35. <delete dir="${dist.dir}/resources"/>
  36. </target>
  37.  
  38. <target depends="init" name="-do-clean">
  39. <delete dir="${build.dir}"/>
  40. <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  41. </target>
Add Comment
Please, Sign In to add comment