Java Memory Error when invoking programmatically Ant API

2009-08-22 Thread Daniele Development-ML
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

Programmatically invoking Ant libraries to sign jar files - Example

2009-07-23 Thread Daniele Development-ML
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

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-07 Thread Daniele Development-ML
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

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Daniele Development-ML
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

Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Daniele Development-ML
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