Issue
So after adding a new project to my Eclipse environment through Ant, the source folder just shows ${src.dir}
and a small warning sign. The only warning I find in the problems tab is
Classpath variable 'JRE_LIB' in project '<projectname>' is deprecated: Use the JRE System Library instead
We have no idea how to resolve this.
We've tried compiling the project through cmd ant, which first resulted in a charset error because of UTF-8 (project is encoded in Latin-1) but we managed to fix that, ant can compile it in cmd.
We have also tried changing Eclipse's charset to Latin-1, which didn't work either.
Solution
Your ANT build file uses the property ${src.dir}
that is either not defined at all or it uses that property in a target that does not depend on the target that defines said property.
Either ensure that <property name="src.dir" .../>
is defined in your ANT build file and that all targets that use the property depend on the target that defines the property or (if you do not want to specify a src.dir
property in your build file) invoke ANT with a -Dsrc.dir=...
command line option. In the latter case you should add a condition to your build file that fails the build if the src.dir
property is not set.
See the ANT manual for more information.
Answered By - Thomas Behr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.