I have a simple syntax for script files of a given extension that translates to java class files that I want to create, each containing a given function that can be invoked by reflection.
I want to write a main function that I can invoke from the ant script that can see the ant build directory, traverse it for all the files that have my extension, and translate each one to a java file that I put not in the bin directory but in the src directory package that holds the file (a script) with my extension.
Is this possible?
Andy
Here is an example of how you could create a
.javafile in thesrcdirectory for every.extfile in thebindirectory.But for code generation, I expect that you would need to implement a custom Ant task.