Saturday, May 15, 2010

Requested information from the developer mailing list for Eclipse

Sent the following to the developer mailing list:

All,

I have had a hard time finding information on running ant locally in Eclipse so I can use the debugger to debug core ant code.

Do the developers on the project typically use Eclipse for development?
If so, what class path works in Eclipse to do this?
Is there a set of commands to get all the dependent jars?
Can I debug org.apache.tools.ant.launch.Launcher directly?
If so, where should the build.xml be that it runs?

Below are the steps I have completed get this going.
I have checked out http://svn.apache.org/repos/asf/ant/core/trunk from subversion to a directory called ant-core.

I got up to revision 944382 which is 1.8.2alpha.
I created a new Java Project against this code.
The default output folder is ant-core/bin.
The default Libraries are ant-antunit-1.1.jar, junit-3.8.2.jar and the JRE (I'm currently using jdk1.6.0_14)
Eclipse detects the default source directories as the following:

ant-core/src
ant-core/src/etc/testcases/core/containerssrc
ant-core/src/etc/testcases/core/loaderref/src
ant-core/src/etc/testcases/taskdefs/apt
ant-core/src/etc/testcases/taskdefs/fixcrlf/expected
ant-core/src/etc/testcases/taskdefs/fixcrlf/input
ant-core/src/etc/testcases/taskdefs/manifestclasspath
ant-core/src/etc/testcases/taskdefs/optional/depend/src1
ant-core/src/etc/testcases/taskdefs/optional/depend/src2
ant-core/src/etc/testcases/taskdefs/optional/depend/src3
ant-core/src/etc/testcases/taskdefs/optional/depend/src4
ant-core/src/etc/testcases/taskdefs/optional/depend/src5
ant-core/src/etc/testcases/taskdefs/optional/javah/input
ant-core/src/etc/testcases/taskdefs/rmic/src
ant-core/src/etc/testcases/taskdefs/types/assertions
ant-core/src/main
ant-core/src/etc/tests/antunit/core/location/src
ant-core/src/etc/tests/antunit/taskdefs/javac-dir/bad-src
ant-core/src/etc/tests/antunit/taskdefs/javac-dir/good-src
ant-core/src/etc/tests/antunit/taskdefs/optional/junit/src
ant-core/src/test/junit
This results in approximately 862 errors.

I was able to build.bat and it built the project into dist.
But, I would like to be able to use Eclipse's debugger.
The main launch point appears to be org.apache.tools.ant.launch.Launcher.
I can right-click on this file and select Debug Java application and hit breakpoints I set, but I would need a clean build to do this.

15149 Full content

In the manual page about replace task, it mentioned we can use a property file


to store token/value pairs.

---------

replacefilterfile: valid property file. Each property will be treated as a

replacefilter where token is the name of the property and value is the

properties value.

---------



There's room to improve this feature: we can add one more option to override

property values defined in this file. This file just house default values, the

customized values will be stored in USER_HOME/.ant.properties or elsewhere, so

that in a team project, developers don't have to adjust values in the

replacefilterfile.



I would be very interested in this feature because after first read I thought I

can use the replace task this way and later found it can not be done in the

current 1.5.1 release.



Thanks.

Nothing on 15149 on the user list either.

http://news.gmane.org/gmane.comp.jakarta.ant.user/
Search: 15149
No documents match your query
Silly me. There is a search option at the bottom of the gmane screen for the project.

http://news.gmane.org/gmane.comp.jakarta.ant.user/
There is a search option at the bottom.

No results on bugzilla issue 15149 in GMANE

It looks like the developer list is not going to help much with 15149. A search in GMANE returned no results.

I wonder if the user list would help any.

How to search Ant mailing list archives

Go to GMANE - http://www.gmane.org/
Click on Searching
Enter your search criteria in "Search for words"
Enter "gmane.com.jakarta.ant.devel" in the "In group" field.
Click on "Search >>"
You can then look through the results.
It's not bad, but I would like to see more of the subject and body of the messages from the result list. I cannot tell if the message pertains to what I am doing because both the subject and body get truncated.

Got here from http://ant.apache.com/, "Mailing Lists", under Archives, "Ant Developer List on gmane"

This shows the most recent messages.

The URL here is
http://news.gmane.org/gmane.comp.jakarta.ant.devel/

In the "-Action-" drop down, select Help.
This shows the main GMANE screen.
From here, click on "Searching"

I pullect the group from the URL above.

Mailing list archives

Digging through the mailing list archives regarding the replace task and using Eclipse for project setup and debugging.
http://mail-archives.apache.org/mod_mbox/ant-dev/

(Found this at http://ant.apache.org/, "Mailing Lists", under Archives select "List Index on mail-archives.apache.org ")