command line compilation settings [message #672143] |
Thu, 19 May 2011 23:34  |
Eclipse User |
|
|
|
Hi all:
I'm working on a static code analysis project at school which requires me to compile the sample project on the command line. The open source project I downloaded via SVN (jFire ERP) compiles ok in Eclipse. Then I did some searching and experimentation and found that I could also compile it from the command line using:
eclipse -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data /home/jFire/jfireworkspace
However, the tool I'm using requires either javac or ant to be run, then wraps itself around one of these. I experimented with using javac but that didnt work out, and I also tried ant without anyluck. So I searched Eclipse preferences, config files, settings etc to see if there was somewhere I could capture the commands it send to javac and then use those on the command line, but didnt find any. I also copied the build.xml I found in Eclipse to a file in the workspace folder and then ran ant, but it just said compile successfully 0 seconds without doing anything. I reran it with debug on and got this (ant -v -k -d -diagnostics | less):
-------------------------------------------
Tasks availability
-------------------------------------------
image : Not Available (the implementation class is not present)
sshexec : Missing dependency com.jcraft.jsch.UserInfo
wlrun : Not Available (the implementation class is not present)
scp : Missing dependency com.jcraft.jsch.UserInfo
stlist : Not Available (the implementation class is not present)
netrexxc : Not Available (the implementation class is not present)
starteam : Not Available (the implementation class is not present)
stylebook : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
jdepend : Missing dependency jdepend.xmlui.JDepend
stcheckin : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
ddcreator : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use it
Here is the build.xml from inside of Eclipse (I replaced ${target} with my dirs for ant to work):
<!-- call ant for all projects referenced by this project (from file .project) -->
<project default="build">
<target name="init">
<!-- set the dafault target dir (applies only if property is not already set) -->
<property name="target" value="${basedir}/target"/>
<xmlproperty file=".project"/>
</target>
<target name="clean">
<!-- delete the *local* target dir - not the ${target} dir -->
<delete dir="target"/>
</target>
<target name="build.subprojects" if="projectDescription.projects.project">
<subant>
<filelist dir=".." files="${projectDescription.projects.project}"/>
<property name="target" value="${target}"/>
</subant>
</target>
<target name="build" depends="init, build.subprojects"/>
</project>
Any ideas on how I can solve this?
Thanks in advance.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05508 seconds