Skip to main content

Is there any thing wrong with the build.xml in JTHarness source release?

2 replies [Last post]
yuwenfeng
Offline
Joined: 2007-07-27
Points: 0

hi,
After using SVN to checkout the source release for JTharness and try to build them by myself by editing the local.properties according to the guide, I meet a build error when
running ant:
D:\Build_JTHarness_CQME_SigTest_20080418\src\JTHarness_20080418\code\build\build.xml:239: Please specify a 'jhall.jar' location in the 'local.properties' file.
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:142)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

then I checked the build.xml under %JTHARNESS_SRC_HOME%/build, and found that
these two lines maybe wrong:

Since file "local.properties", "build.properties", and "build.xml" are both put at %JTHARNESS_SRC_HOME%/build,

So I change these two lines to be

It can be build successfully after then!

So is it a real issue? Pls help to clarify it.
Thanks!

BRs,
Koo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
yuwenfeng
Offline
Joined: 2007-07-27
Points: 0

I found the root cause is that I misunderstand the "basedir" within Ant, there is no problem
with the build file and build steps for JTharness.
And I suggest to add some instructions in build steps to notify the developer how "basedir" is defined in build file so as they will not make a mistake while writting library path in “local.properties“.

BRs,
Koo

bkurotsu
Offline
Joined: 2004-12-13
Points: 0

Thanks, I'll see what notes we can add.