I have about 8 jar files that I need to sign and rename them. My xml look like this:
Is there any way that let me sign the 8 jars at one signjar, and renaming each jar as follow:
original_name+Signed.jar, where original_name is the name of the jar before renaming, the one that is in jar attribute.
I think what you are trying to avoid is writing the same code multiple times because then it becomes a maintenance nightmare. One way to achieve this would be to define your own task using presetdef and then using it. Something like this:
Another mechanism would be to use antcall, passing parameters. Something like this:
Peter Johnson wrote:I think what you are trying to avoid is writing the same code multiple times because then it becomes a maintenance nightmare. One way to achieve this would be to define your own task using presetdef and then using it. Something like this:
Another mechanism would be to use antcall, passing parameters. Something like this:
Hello, thanks for your response. But, if I want to consider the 2nd suggestion, for signing the eight
jars that I have: do I need to antcall 8 times?
Another alternative would be to use the foreach task from antcontrib, but first you would have to find and install antcontrib (my last search for it didn't yield a download page).
Jeanne, as I pointed out in another forum post, that download page provides only the C++-related tasks, not any of the other tasks that I have come to know and love, such as the foreach task I mentioned. Fortunately, I have a copy of a prior release of antcontrib (version 1.0b3, as opposed to the latest which is 1.0b5) which contains all of the tasks, but I can no longer find where to downlaod that from.
Peter Johnson wrote:Jeanne, as I pointed out in another forum post, that download page provides only the C++-related tasks, not any of the other tasks that I have come to know and love, such as the foreach task I mentioned. Fortunately, I have a copy of a prior release of antcontrib (version 1.0b3, as opposed to the latest which is 1.0b5) which contains all of the tasks, but I can no longer find where to downlaod that from.
When I click on ant-contrib on that page (first column), it takes me to a download page with more options. Clicking 1.0b3 expands the options for the jar you mentioned. That's the one I'm using too. It may not be the latest, but it still available for download - which is what I think Mariam is looking for.
Finally! The light has dawned! When you are on the first download page (http://sourceforge.net/project/showfiles.php?group_id=36177), DO NOT CLICK THE DOWNLOAD LINK!!! Instead, click the ant-contrib link. I guess it must be obvious to people who are not morons like me that that if you want to download ant-contrib that you should not click on the download link.