Wednesday, May 8, 2013

使用Eclipse Ant plugin操作流程


Step 1:

使用Eclipse Ant plugin操作流程


http://jerry17768java.blogspot.tw/2012/07/eclipse-ant-plugin.html



Problem:

com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre"


Step2:

set $JAVA_HOME in eclipse but it goes to another path and say can not find java compiler


Problem:
No tools.jar is specified in the Ant runtime classpath

重要觀念:
In Eclipse the Ant java.home variable is not based on the Windows JAVA_HOME environment variable. Instead it is set to the home directory of the project's JRE.
然後分為Java 跟 ant兩個部份
解答:
http://stackoverflow.com/questions/1288343/how-to-change-java-home-for-eclipse-ant


ant build specific target(build特定的特定的target)


ant [options] [target [target2 [target3] ...]]







No comments:

Post a Comment