Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » /usr/bin/sign on a windows machine
/usr/bin/sign on a windows machine [message #778722] Fri, 13 January 2012 12:46 Go to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-Reichert
Messages: 215
Registered: July 2009
Senior Member
Hi,

I'd like to run signing locally in a Hudson build using Buckminster.

But then I get

ERROR: org.eclipse.core.runtime.CoreException:
C:\Development\buckminster-headless\configuration\org.eclipse.osgi\bundles\77\1\.cp\org\eclipse\buckminster\jarprocessor\antscript\signing.ant:210:
Execute failed: java.io.IOException: Cannot run program "\usr\bin\sign" (in directory
"D:\hudson\jobs\em-nightly-build\workspace\sources\modeling\plugins\de.xxx.em.site"): CreateProcess error=2, The system cannot
find the file specified

I have MinGW installed but /usr/bin doesn't contain a sign program.

I tried to figure out which kind of signing tool this could be, but without result (except a hint indicating that gpg might do the
job).

Can anyone give me a hint?

Thanks,
Henrik
Re: /usr/bin/sign on a windows machine [message #778805 is a reply to message #778722] Fri, 13 January 2012 16:47 Go to previous messageGo to next message
Alex Kravets is currently offline Alex Kravets
Messages: 380
Registered: November 2009
Senior Member
Looks like it's trying to run sign from "\usr\bin\sign", but isn't that Linux filesystem path?
Re: /usr/bin/sign on a windows machine [message #778957 is a reply to message #778722] Sat, 14 January 2012 03:12 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3228
Registered: July 2009
Senior Member
Buckminster relies on the Ant task 'signjar' when signing locally. This
command requires that the %JAVA_HOME%\bin is on your PATH or it wount be
able to find the Java signer. When the signer is not found, the error
message apparently complains about some default location.

Try adding %JAVA_HOME\bin to your path and see if that helps.

- thomas

On 2012-01-13 18:46, Henrik Rentz-Reichert wrote:
> Hi,
>
> I'd like to run signing locally in a Hudson build using Buckminster.
>
> But then I get
>
> ERROR: org.eclipse.core.runtime.CoreException:
> C:\Development\buckminster-headless\configuration\org.eclipse.osgi\bundles\77\1\.cp\org\eclipse\buckminster\jarprocessor\antscript\signing.ant:210:
> Execute failed: java.io.IOException: Cannot run program "\usr\bin\sign" (in directory
> "D:\hudson\jobs\em-nightly-build\workspace\sources\modeling\plugins\de.xxx.em.site"): CreateProcess error=2, The system cannot
> find the file specified
>
> I have MinGW installed but /usr/bin doesn't contain a sign program.
>
> I tried to figure out which kind of signing tool this could be, but without result (except a hint indicating that gpg might do the
> job).
>
> Can anyone give me a hint?
>
> Thanks,
> Henrik
Re: /usr/bin/sign on a windows machine [message #779641 is a reply to message #778957] Mon, 16 January 2012 03:42 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-Reichert
Messages: 215
Registered: July 2009
Senior Member
Thomas,

the ant target seems to be queue.for.signing.local from
\org.eclipse.buckminster.jarprocessor\src\org\eclipse\buckminster\jarprocessor\antscript

It reads

<target name="queue.for.signing.local" if="sign.type.eclipse.local">
<mkdir dir="${input.folder}"/>
<zip destfile="${input.file}">
<buckminster.valuefileset value="${fs:action.requirements}" />
</zip>
<echo message="Queueing ${subject.file} for signing" />
<mkdir dir="${eclipse.staging.area}"/>
<copy file="${input.file}" todir="${eclipse.staging.area}"/>
<exec executable="/usr/bin/sign" outputproperty="sign.output">
<arg value="${eclipse.staging.area}/${subject.file}"/>
<arg value="nomail"/>
<arg value="${staging.output.folder}"/>
</exec>
<fail message="${sign.output}">
<condition>
<or>
<contains string="${sign.output}" substring="ERROR"/>
<contains string="${sign.output}" substring="Usage:"/>
</or>
</condition>
</fail>
<echo message="${sign.output}"/>
<delete file="${input.file}"/>
</target>

So the path is hard coded as /usr/bin/sign. No JAVA_HOME is searched and I can not figure out whether the jarsigner of the JDK is
meant...

Thanks,
Henrik


Am 14.01.2012 09:12, schrieb Thomas Hallgren:
> Buckminster relies on the Ant task 'signjar' when signing locally. This command requires that the %JAVA_HOME%\bin is on your PATH
> or it wount be able to find the Java signer. When the signer is not found, the error message apparently complains about some
> default location.
>
> Try adding %JAVA_HOME\bin to your path and see if that helps.
>
> - thomas
>
> On 2012-01-13 18:46, Henrik Rentz-Reichert wrote:
>> Hi,
>>
>> I'd like to run signing locally in a Hudson build using Buckminster.
>>
>> But then I get
>>
>> ERROR: org.eclipse.core.runtime.CoreException:
>> C:\Development\buckminster-headless\configuration\org.eclipse.osgi\bundles\77\1\.cp\org\eclipse\buckminster\jarprocessor\antscript\signing.ant:210:
>>
>> Execute failed: java.io.IOException: Cannot run program "\usr\bin\sign" (in directory
>> "D:\hudson\jobs\em-nightly-build\workspace\sources\modeling\plugins\de.xxx.em.site"): CreateProcess error=2, The system cannot
>> find the file specified
>>
>> I have MinGW installed but /usr/bin doesn't contain a sign program.
>>
>> I tried to figure out which kind of signing tool this could be, but without result (except a hint indicating that gpg might do the
>> job).
>>
>> Can anyone give me a hint?
>>
>> Thanks,
>> Henrik
>
Re: /usr/bin/sign on a windows machine [message #779730 is a reply to message #779641] Mon, 16 January 2012 07:18 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3228
Registered: July 2009
Senior Member
I think you misread the antscript. 'eclipse.local' is a 'sign.type.eclipse' type of thing. When signing locally you
should use just 'local' and hence get the 'sign.type.default' and consequently a call to the 'default.sign.jars' target.
That's where the 'signjar' is called.

The 'sign.type.eclipse' is just for eclipse projects and eclipse committers. It can either be run locally (as is the
case when using Hudson at build.eclipse.org) or remotely (from your own machine with ssh access to build.eclipse.org).

So don't use 'eclipse.local' or 'eclipse.remote'. Just use 'local'.

HTH,
- thomas


On 2012-01-16 09:42, Henrik Rentz-Reichert wrote:
> Thomas,
>
> the ant target seems to be queue.for.signing.local from
> \org.eclipse.buckminster.jarprocessor\src\org\eclipse\buckminster\jarprocessor\antscript
>
> It reads
>
> <target name="queue.for.signing.local" if="sign.type.eclipse.local">
> <mkdir dir="${input.folder}"/>
> <zip destfile="${input.file}">
> <buckminster.valuefileset value="${fs:action.requirements}" />
> </zip>
> <echo message="Queueing ${subject.file} for signing" />
> <mkdir dir="${eclipse.staging.area}"/>
> <copy file="${input.file}" todir="${eclipse.staging.area}"/>
> <exec executable="/usr/bin/sign" outputproperty="sign.output">
> <arg value="${eclipse.staging.area}/${subject.file}"/>
> <arg value="nomail"/>
> <arg value="${staging.output.folder}"/>
> </exec>
> <fail message="${sign.output}">
> <condition>
> <or>
> <contains string="${sign.output}" substring="ERROR"/>
> <contains string="${sign.output}" substring="Usage:"/>
> </or>
> </condition>
> </fail>
> <echo message="${sign.output}"/>
> <delete file="${input.file}"/>
> </target>
>
> So the path is hard coded as /usr/bin/sign. No JAVA_HOME is searched and I can not figure out whether the jarsigner of the JDK is
> meant...
>
> Thanks,
> Henrik
>
>
> Am 14.01.2012 09:12, schrieb Thomas Hallgren:
>> Buckminster relies on the Ant task 'signjar' when signing locally. This command requires that the %JAVA_HOME%\bin is on your PATH
>> or it wount be able to find the Java signer. When the signer is not found, the error message apparently complains about some
>> default location.
>>
>> Try adding %JAVA_HOME\bin to your path and see if that helps.
>>
>> - thomas
>>
>> On 2012-01-13 18:46, Henrik Rentz-Reichert wrote:
>>> Hi,
>>>
>>> I'd like to run signing locally in a Hudson build using Buckminster.
>>>
>>> But then I get
>>>
>>> ERROR: org.eclipse.core.runtime.CoreException:
>>> C:\Development\buckminster-headless\configuration\org.eclipse.osgi\bundles\77\1\.cp\org\eclipse\buckminster\jarprocessor\antscript\signing.ant:210:
>>>
>>> Execute failed: java.io.IOException: Cannot run program "\usr\bin\sign" (in directory
>>> "D:\hudson\jobs\em-nightly-build\workspace\sources\modeling\plugins\de.xxx.em.site"): CreateProcess error=2, The system cannot
>>> find the file specified
>>>
>>> I have MinGW installed but /usr/bin doesn't contain a sign program.
>>>
>>> I tried to figure out which kind of signing tool this could be, but without result (except a hint indicating that gpg might do the
>>> job).
>>>
>>> Can anyone give me a hint?
>>>
>>> Thanks,
>>> Henrik
>>
>
Re: /usr/bin/sign on a windows machine [message #781184 is a reply to message #779730] Fri, 20 January 2012 04:59 Go to previous message
Henrik Rentz-Reichert is currently offline Henrik Rentz-Reichert
Messages: 215
Registered: July 2009
Senior Member
yes, thank you.

I thought I had used the local signing but my properties have been overridden in another place such that the build actually used
eclipse.local.

Thanks,
Henrik

Am 16.01.2012 13:18, schrieb Thomas Hallgren:
> I think you misread the antscript. 'eclipse.local' is a 'sign.type.eclipse' type of thing. When signing locally you should use
> just 'local' and hence get the 'sign.type.default' and consequently a call to the 'default.sign.jars' target. That's where the
> 'signjar' is called.
>
> The 'sign.type.eclipse' is just for eclipse projects and eclipse committers. It can either be run locally (as is the case when
> using Hudson at build.eclipse.org) or remotely (from your own machine with ssh access to build.eclipse.org).
>
> So don't use 'eclipse.local' or 'eclipse.remote'. Just use 'local'.
>
> HTH,
> - thomas
>
>
> On 2012-01-16 09:42, Henrik Rentz-Reichert wrote:
>> Thomas,
>>
>> the ant target seems to be queue.for.signing.local from
>> \org.eclipse.buckminster.jarprocessor\src\org\eclipse\buckminster\jarprocessor\antscript
>>
>> It reads
>>
>> <target name="queue.for.signing.local" if="sign.type.eclipse.local">
>> <mkdir dir="${input.folder}"/>
>> <zip destfile="${input.file}">
>> <buckminster.valuefileset value="${fs:action.requirements}" />
>> </zip>
>> <echo message="Queueing ${subject.file} for signing" />
>> <mkdir dir="${eclipse.staging.area}"/>
>> <copy file="${input.file}" todir="${eclipse.staging.area}"/>
>> <exec executable="/usr/bin/sign" outputproperty="sign.output">
>> <arg value="${eclipse.staging.area}/${subject.file}"/>
>> <arg value="nomail"/>
>> <arg value="${staging.output.folder}"/>
>> </exec>
>> <fail message="${sign.output}">
>> <condition>
>> <or>
>> <contains string="${sign.output}" substring="ERROR"/>
>> <contains string="${sign.output}" substring="Usage:"/>
>> </or>
>> </condition>
>> </fail>
>> <echo message="${sign.output}"/>
>> <delete file="${input.file}"/>
>> </target>
>>
>> So the path is hard coded as /usr/bin/sign. No JAVA_HOME is searched and I can not figure out whether the jarsigner of the JDK is
>> meant...
>>
>> Thanks,
>> Henrik
>>
>>
>> Am 14.01.2012 09:12, schrieb Thomas Hallgren:
>>> Buckminster relies on the Ant task 'signjar' when signing locally. This command requires that the %JAVA_HOME%\bin is on your PATH
>>> or it wount be able to find the Java signer. When the signer is not found, the error message apparently complains about some
>>> default location.
>>>
>>> Try adding %JAVA_HOME\bin to your path and see if that helps.
>>>
>>> - thomas
>>>
>>> On 2012-01-13 18:46, Henrik Rentz-Reichert wrote:
>>>> Hi,
>>>>
>>>> I'd like to run signing locally in a Hudson build using Buckminster.
>>>>
>>>> But then I get
>>>>
>>>> ERROR: org.eclipse.core.runtime.CoreException:
>>>> C:\Development\buckminster-headless\configuration\org.eclipse.osgi\bundles\77\1\.cp\org\eclipse\buckminster\jarprocessor\antscript\signing.ant:210:
>>>>
>>>>
>>>> Execute failed: java.io.IOException: Cannot run program "\usr\bin\sign" (in directory
>>>> "D:\hudson\jobs\em-nightly-build\workspace\sources\modeling\plugins\de.xxx.em.site"): CreateProcess error=2, The system cannot
>>>> find the file specified
>>>>
>>>> I have MinGW installed but /usr/bin doesn't contain a sign program.
>>>>
>>>> I tried to figure out which kind of signing tool this could be, but without result (except a hint indicating that gpg might do
>>>> the
>>>> job).
>>>>
>>>> Can anyone give me a hint?
>>>>
>>>> Thanks,
>>>> Henrik
>>>
>>
>
Previous Topic:Setting up additional remotes for GIT repository
Next Topic:Problem with site.p2 action and director
Goto Forum:
  


Current Time: Thu Aug 21 20:00:46 EDT 2014

Powered by FUDForum. Page generated in 0.01811 seconds