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: .;
path{
        id:onpath;
        pathelement     {location:"lib/antlr-3.1.1-runtime.jar"},
        {location:"${antlr}/antlr-2.7.7.jar"}   
        {location:"${antlr}/stringtemplate.jar"},
        {location: lib/antlr-3.1.1-runtime.jar, lib/on.jar}
}

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

target
{       name: compile;  depends: init; description:--compile buildonant;
        javac{srcdir:src; destdir: output/classes; includes:
**/ONProjectHelper2.java; classpath:
        "lib/antlr-3.1.1-runtime.jar;lib/on.jar"}
}
{ 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,
Qinxian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to