We all wait now over 4 months for this patch.
The Plugin is unusable for all Applications since this long time.

I found a solution to be deployable again with ant.
I publish it here for all other users, that wait so urgent as i did it.

Here the ant build file signhelper.xml which worked for me

<project default="unsign" xmlns:antcontrib="antlib:net.sf.antcontrib">
<macrodef name="unsignjar">
<attribute name="jar" />
<sequential>
<!-- Remove any existing signatures from a JAR file. -->
<tempfile prefix="usignjar-" destdir="$

{java.io.tmpdir}

"
property="temp.file" />
<echo message="Removing signatures from JAR: @

{jar}" />
<mkdir dir="${temp.file}" />
<unjar src="" dest="$

{temp.file}">
<patternset>
<include name="**" />
<exclude name="META-INF/*.SF" />
<exclude name="META-INF/*.DSA" />
<exclude name="META-INF/*.RSA" />
</patternset>
</unjar>
<delete file="@{jar}" failonerror="true" />
<!-- Touch it in case the file didn't have a manifest. Otherwise the JAR
task below will fail if the manifest file doesn't exist. -->
<mkdir dir="${temp.file}

/META-INF" />
<touch file="$

{temp.file}/META-INF/MANIFEST.MF" />
<manifest file="${temp.file}

/META-INF/MANIFEST.MF">
<attribute name="Trusted-Library" value="true" />
<attribute name="Permissions" value="all-permissions" />
<attribute name="CodeBase" value="$

{codebase}

" />
</manifest>
<jar destfile="@

{jar}" basedir="${temp.file}" includes="**"
manifest="${temp.file}/META-INF/MANIFEST.MF" />
<delete dir="${temp.file}" failonerror="true" />
</sequential>
</macrodef>

<!--unsign single jar -->
<!-- unsignjar jar="${jar}

" /-->
<target name="unsign" description="unsign the jar">
<unsignjar jar="$

{jar}" />
</target>
<target name="signjar">
<echo message="signing ${jar}

" />
<signjar jar="$

{jar}

" alias="myalias" storepass="storepass"
keystore="mykeystore" verbose="true"/>
</target>
</project>

the script to unsign:

:~/$ find ./target/jnlp/lib0045000030/ -name "*.jar" -exec ant -Djar={} -Dcodebase="mycodebase" -buildfile ./signhelper.xml \;
the script to sign:

:~/$ find ./target/jnlp/lib0045000030/ -name "*.jar" -exec ant -Djar={} -Dcodebase="mycodebase" -buildfile ./signhelper.xml signjar \;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to