Hi everybody,
I'm porting the following piece of Java code:
Project project = new Project();
Target target = new Target();
SignJar sj = new SignJar();
target.addTask(sj);
project.addTarget("sign_jar", target);
sj.setKeystore(sigFile);
sj.set
Hello everybody,
some time ago I emailed to ask details/examples on how
to programmatically invoke Ant libraries to sign a jar file. There were
contrasted opinion on whether Ant libraries could be invoked directly and I
was invited to post an example when (and if) I was successful in this.
With a
Yes, Peter, I totally agree with you. However, I would expect that the XML
elements and attributes are matched against some Java classes and calling
them in the same order as does the Ant parser does, it would work. And
actually it does with the above suggested statements.
Of course, it depends on
Thanks.
I tried your suggestions, and the problem concerned that seems to be solved
- thanks!
Now, I get another exception, which seems somehow related to ant libraries -
this is my understanding. I have included all the ant jars in my
application. I post the exception and the new code - hoping in
Hello everybody:
I am trying to use Ant Task programmatically by invoking the API within my
Java code.
I get an exception, but everything appears to be fine to my eyes - I indeed
set all the compulsory attributes of the SignJar task. Probably somebody
else here has a good suggestion or the solutio