[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Java has 99 problems but a pointer ain't one
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
This is preferable to writing a UNIX script for three reasons:
1) It's shorter
2) It includes classes Ant loaded, not just those in the system classpath
3) It doesn't tie you to a particular OS
Java has 99 problems but a pointer ain't one
Originally posted by Ryan Zezeski:
1) Shorter is not always better.
2) I'm not sure why you would want to do this? I would imagine you want to keep your testing/build enviornment as segregated as possible from your working environment. So why is your test/build using classes ant loaded? I would be using a forked process with it's own classpath.
3)Got me there, but in most cases your either programming in Windows or Unix/Linux, and writing a script file isn't rocket science (although Windows scripting sucks IMO)
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2