ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "向雅" <>
Subject Contribute for ANT a new format script with a new ProjectHelper
Date Tue, 18 Nov 2008 17:44:02 GMT
Hi team,
I made a new script ON(ObjectNotation), and I like ant and I developed
a ONProjectHelper2.
I think I should share it with all.
I want know there are someone has some interesting on it.

There is sample script for ant anton self.

project: compile, buildonant, .;
name: buildANTON;
default: deploy;
basedir: .;
	pathelement	{location:"lib/antlr-3.1.1-runtime.jar"},
	{location: lib/antlr-3.1.1-runtime.jar, lib/on.jar}

target{ name: init;
	echo: "${ant.home}";
	delete{dir: output/classes}
	mkdir{dir: output/classes}

{	name: compile;	depends: init; description:--compile buildonant;
	javac{srcdir:src; destdir: output/classes; includes:
**/; classpath:
{ name: deploy; depends: compile;
	jar{destfile: "${ant.home}/lib/anton.jar";
		fileset{dir: output/classes;
			include: {name:**/ONProjectHelper2.class;}
		fileset{dir: src; includes: "META-INF/**";}

Besides this, I have 2 problems:
1,I want take care of some xml format file, but current ProjectHelper
implementation just do one helper. I hope the newInstance failed so
ant can make use origin ant instead of anton. if new I do it, just
wrapper ProjectHelper2, not a good way.
2, I want search default file build.on instead of build.xml, or search
build.on or build.xml. but ProjectHelper not help:)

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message