When the class name is changed away from AppReleaseInfo
to something else like ReleaseInfo the generated source
file [ReleaseInfo.java] still refers to the class
AppReleaseInfo in the class' static main method.
I fixed the problem in the source code [edited the
createMainMethod function in the SourceGeneratorApp
class] by
inserting the line "line =
line.replaceAll("AppReleaseInfo", this.className);"
before writing each line from the main.txt template
into the string buffer.
This fix should probably be done in the primary
jReleaseInfo source to fix it for everyone.
Thank you Francois Coetzer
francoisc@sgsol.com
Logged In: NO
I fixed it a little more simple by using the class AppReleaseInfo ;-) as class to generate in my Ant task.
Nevertheless it IMHO should get fixed in the main distribution as noted above!
Regards
Angelo