java - How to add eclipse project's class patth to ant script? -
what easiest way add project's classpath custom ant script inside project? need able run java tasks current project's classpath. project can contain manual classpath entries, maven entries , on - whatever eclipse allows.
probably, answer follows:
1) first need export current project build.xml
file->export->ant buildfiles
.
this file can used compile project ant
need fact file synchronized project eclipse
. inside file contain explicit definition of classpath, these hardcodings under eclipse control.
2) import or include in-sync xml file custom one.
3) inside custom file use <classpath refid="myprojectname.classpath"/>
Comments
Post a Comment