Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JNLP/webstart
JNLP/webstart [message #320614] Tue, 25 September 2007 04:53 Go to next message
Ulrich Staudinger is currently offline Ulrich Staudinger
Messages: 7
Registered: July 2009
Junior Member
Hi there,

i have asked this a while ago already, and haven't received a good solution
....

When i enable
generateJnlp=true

i don't see artifacts of that build.

Should i find some output in the console, indicating that something jnlp
related is done?

I have redirected all console output to a log file, but that one doesn't
show anything jnlp related either.

Any help is welcome!

Tia.

Regards,
Ulrich.
Re: JNLP/webstart [message #320616 is a reply to message #320614] Tue, 25 September 2007 05:14 Go to previous messageGo to next message
Ulrich Staudinger is currently offline Ulrich Staudinger
Messages: 7
Registered: July 2009
Junior Member
"Ulrich Staudinger" <us@activestocks.de> wrote in message
news:fdai8j$21j$1@build.eclipse.org...
> When i enable
> generateJnlp=true


I searched a bit more and found that, although defined, ant task
"eclipse.jnlpGenerator" is never called ?


[ustaudinger@tonga eclipse-3.2]$ find . -name "*" | xargs grep
"eclipse.jnlpGenerator"
Binary file ./configuration/org.eclipse.core.runtime/.mainData.1 matches
../plugins/org.eclipse.pde.build_3.2.0.v20060603/plugin.xml:
name="eclipse.jnlpGenerator"
[ustaudinger@tonga eclipse-3.2]$


Any pointers?

Cheers,
Ulrich.
Re: JNLP/webstart [message #320617 is a reply to message #320616] Tue, 25 September 2007 06:09 Go to previous messageGo to next message
Ulrich Staudinger is currently offline Ulrich Staudinger
Messages: 7
Registered: July 2009
Junior Member
Even with running it almost manually:

java -jar /home/ustaudinger/eclipse-3.2/startup.jar -application
org.eclipse.ant.core.antRunner -buildfile
/home/ustaudinger/eclipsetrader-build-space/./build/features /org.eclipse.pde.build.container.feature/build.xml
-Dbuilder=/home/ustaudinger/eclipsetrader-build-space/build_ config -DbaseLocation="/home/ustaudinger/eclipse-3.2"
-DjavacSource="1.5" -DjavacTarget="1.5" build.update.jar


.... and after having modified in
..../org.eclipse.pde.build.container.feature/build.xml ...

<target name="build.update.jar" depends="init" description="Build the
feature jar of: org.eclipse.pde.build.container.feature for an update
site.">
<echo> About to build jnlp?</echo>
<eclipse.jnlpGenerator
feature=" ${feature.destination}/org.eclipse.pde.build.container.featu re_1.0.0.jar "
codebase="${jnlp.codebase}" j2se="${jnlp.j2se}"/>
</target>


i just see ...


Buildfile:
/home/ustaudinger/eclipsetrader-build-space/./build/features /org.eclipse.pde.build.container.feature/build.xml

init:

build.update.jar:
[echo] About to build jnlp?
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 0 seconds


but NO jnlp file anywhere.

I think this is simply a bug.

Regards,
Ulrich.


"Ulrich Staudinger" <us@activestocks.de> wrote in message
news:fdajge$6sp$1@build.eclipse.org...
> "Ulrich Staudinger" <us@activestocks.de> wrote in message
> news:fdai8j$21j$1@build.eclipse.org...
>> When i enable
>> generateJnlp=true
>
>
> I searched a bit more and found that, although defined, ant task
> "eclipse.jnlpGenerator" is never called ?
>
>
> [ustaudinger@tonga eclipse-3.2]$ find . -name "*" | xargs grep
> "eclipse.jnlpGenerator"
> Binary file ./configuration/org.eclipse.core.runtime/.mainData.1 matches
> ./plugins/org.eclipse.pde.build_3.2.0.v20060603/plugin.xml:
> name="eclipse.jnlpGenerator"
> [ustaudinger@tonga eclipse-3.2]$
>
>
> Any pointers?
>
> Cheers,
> Ulrich.
Re: JNLP/webstart [message #320716 is a reply to message #320617] Thu, 27 September 2007 12:58 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
You should expect to see eclipse.jnlpGenerator calls in the generated
assemble.*.xml files in your buildDirectory, after the gather.bin.parts calls
and before the archive steps.

After a look at the code, it seems this call is conditional on the shape of the
feature, it requires jars, not folders. If the call is not there, set
"outputUpdateJars=true" in your build configuration build.properties file.

-Andrew



Ulrich Staudinger wrote:
> Even with running it almost manually:
>
> java -jar /home/ustaudinger/eclipse-3.2/startup.jar -application
> org.eclipse.ant.core.antRunner -buildfile
> /home/ustaudinger/eclipsetrader-build-space/./build/features /org.eclipse.pde.build.container.feature/build.xml
>
> -Dbuilder=/home/ustaudinger/eclipsetrader-build-space/build_ config
> -DbaseLocation="/home/ustaudinger/eclipse-3.2" -DjavacSource="1.5"
> -DjavacTarget="1.5" build.update.jar
>
>
> ... and after having modified in
> .../org.eclipse.pde.build.container.feature/build.xml ...
>
> <target name="build.update.jar" depends="init" description="Build the
> feature jar of: org.eclipse.pde.build.container.feature for an update
> site.">
> <echo> About to build jnlp?</echo>
> <eclipse.jnlpGenerator
> feature=" ${feature.destination}/org.eclipse.pde.build.container.featu re_1.0.0.jar "
> codebase="${jnlp.codebase}" j2se="${jnlp.j2se}"/>
> </target>
>
>
> i just see ...
>
>
> Buildfile:
> /home/ustaudinger/eclipsetrader-build-space/./build/features /org.eclipse.pde.build.container.feature/build.xml
>
>
> init:
>
> build.update.jar:
> [echo] About to build jnlp?
> BUILD SUCCESSFUL
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
>
> but NO jnlp file anywhere.
>
> I think this is simply a bug.
>
> Regards,
> Ulrich.
>
>
> "Ulrich Staudinger" <us@activestocks.de> wrote in message
> news:fdajge$6sp$1@build.eclipse.org...
>> "Ulrich Staudinger" <us@activestocks.de> wrote in message
>> news:fdai8j$21j$1@build.eclipse.org...
>>> When i enable
>>> generateJnlp=true
>>
>>
>> I searched a bit more and found that, although defined, ant task
>> "eclipse.jnlpGenerator" is never called ?
>>
>>
>> [ustaudinger@tonga eclipse-3.2]$ find . -name "*" | xargs grep
>> "eclipse.jnlpGenerator"
>> Binary file ./configuration/org.eclipse.core.runtime/.mainData.1 matches
>> ./plugins/org.eclipse.pde.build_3.2.0.v20060603/plugin.xml:
>> name="eclipse.jnlpGenerator"
>> [ustaudinger@tonga eclipse-3.2]$
>>
>>
>> Any pointers?
>>
>> Cheers,
>> Ulrich.
>
Re: JNLP/webstart [message #824630 is a reply to message #320716] Mon, 19 March 2012 18:15 Go to previous messageGo to next message
Thorsten Schlathölter is currently offline Thorsten Schlathölter
Messages: 208
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi everyone,
I wonder if this subject ever got to a happy end? I am currently facing the same problem and I am curious if somebody has the jnlp generation up and running?

I have set "outputUpdateJars = true" and I find the following task in the generated assembly script:

	<target name="jar.processing">
		<antcall target="jarUp">
			<param name="source" value="${eclipse.plugins}"/>
			<param name="elementName" value="......."/>
		</antcall>
		<antcall target="jarSigning">
			<param name="source" value="${eclipse.plugins}"/>
			<param name="elementName" value="........"/>
		</antcall>
		<antcall target="jarUp">
			<param name="source" value="${eclipse.features}"/>
			<param name="elementName" value="..........."/>
		</antcall>
		<antcall target="jarSigning">
			<param name="source" value="${eclipse.features}"/>
			<param name="elementName" value="......."/>
		</antcall>
		<eclipse.jnlpGenerator feature="${eclipse.features}/......."  codebase="${jnlp.codebase}" j2se="${jnlp.j2se}" locale="${jnlp.locale}" generateOfflineAllowed="${jnlp.generateOfflineAllowed}" configInfo="${jnlp.configs}"/>
		<antcall target="customAssembly">
			<param name="customTarget" value="post.jarUp"/>
		</antcall>
	</target>


And I see the following in the output:

jar.processing:

jarUp:

jarIng:
      [jar] Building jar: ....
   [delete] Deleting directory ....

jarSigning:

customAssembly:


No trace of a jnlp task called.

Thanks in advance
Thorsten
Re: JNLP/webstart [message #825777 is a reply to message #824630] Wed, 21 March 2012 04:52 Go to previous message
Thorsten Schlathölter is currently offline Thorsten Schlathölter
Messages: 208
Registered: February 2012
Location: Düsseldorf
Senior Member
Finally I found them. The jnlp files are created in a tmp directory and are later on deleted in the cleanup. The normal course of the build (as I use it) does not copy them to a usefull location. The jnlp's can be found here:

${buildDirectory}/tmp/eclipse/features


So I modified the customAssembly.xml to save them prior to deletion:

<target name="pre.archive">
		<property name="featureDir" value="${buildDirectory}/${buildType}.${buildId}/${topLevelElementId}_feature_jars" />
		<mkdir dir="${featureDir}" />    
		<copy todir="${featureDir}" failonerror="false">      
			<fileset dir="${buildDirectory}/tmp/eclipse">
				<include name="**/*.jnlp" />
			</fileset>	
		</copy>    
	</target>

Previous Topic:segmentation fault indigo SR2 with glassfish 3.1.2 plugin
Next Topic:Run Jobs concurrently?
Goto Forum:
  


Current Time: Tue Jul 22 23:50:24 EDT 2014

Powered by FUDForum. Page generated in 0.01883 seconds