Re: Building the setup project
"Martin W. Kirst" <[email protected]> Fri, 30 Oct 2015 21:41:29 +0100
| Newsgroups | gmane.comp.java.tn5250j.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Justin,
I found the reason: there's also a install.xml file.
This needs to use version=5.0 also.
Just look at my latest SVN commit ;-)
Regards
Martin
Am 29.10.2015 um 02:47 schrieb Justin Dearing:
> Hello,
>
> I would like to add start menu icons to the setup project. However,
> I have yet to get generate-installer to work. The current error
> message is
>
> [izpack] Oct 28, 2015 8:43:21 PM
> com.izforge.izpack.core.container.PlatformProvider provide [izpack]
> INFO: Detected platform:
> windows,version=10.0,arch=x64,symbolicName=null,javaVersion=1.8.0_66
>
>
[izpack] Exception in thread "Thread-0"
> com.izforge.izpack.api.exception.CompilerException:
> C:\Users\Justin\Documents\tn5250j-code\tn5250j/dist/installer/install.
xml:1:
>
>
the file version is different from the compiler version
> [izpack] at
> com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:79
)
>
>
[izpack] at java.lang.Thread.run(Thread.java:745)
> [izpack] Caused by:
> com.izforge.izpack.api.exception.CompilerException:
> C:\Users\Justin\Documents\tn5250j-code\tn5250j/dist/installer/install.
xml:1:
>
>
the file version is different from the compiler version
> [izpack] at
> com.izforge.izpack.compiler.helper.AssertionHelper.parseError(Assertio
nHelper.java:61)
>
>
[izpack] at
> com.izforge.izpack.compiler.resource.ResourceFinder.getXMLTree(Resourc
eFinder.java:188)
>
>
[izpack] at
> com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerCon
fig.java:316)
>
>
[izpack] at
> com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:75
)
>
>
[izpack] ... 1 more
>
>
> Here are the changes I made to get it to talk to my Izrepack
> install:
>
> C:\Users\Justin\Documents\tn5250j-code\tn5250j>git diff diff --git
> a/tn5250j/build.properties b/tn5250j/build.properties index
> 7e9f7b8..736ec1d 100644 --- a/tn5250j/build.properties +++
> b/tn5250j/build.properties @@ -20,7 +20,7 @@ Name=Tn5250j
> version=0.7.7-Snapshot year=2001-2015
>
> -IzPack.dir=c:/IzPack/ +IzPack.dir=C:/Program Files/IzPack^M
>
> main.class=org.tn5250j.My5250
>
> diff --git a/tn5250j/build.xml b/tn5250j/build.xml index
> a4eef44..60d0326 100644 --- a/tn5250j/build.xml +++
> b/tn5250j/build.xml @@ -301,9 +301,11 @@ <!-- Creates an installer
> for tn5250j --> <target name="generate-installer" depends="dist"
> description="Creates installer using IzPack">
>
> + <path id="build.classpath"> + <fileset
> dir="${IzPack.dir}/lib" includes="*.jar"/> + </path> <!-- Allows
> us to use the IzPack Ant task --> - <taskdef name="izpack"
> classpath="${IzPack.dir}/lib/compiler.jar" -
> classname="com.izforge.izpack.ant.IzPackTask"/> + <taskdef
> name="izpack" classpathref="build.classpath"
> classname="com.izforge.izpack.ant.IzPackTask"/>
>
> <!-- Copies the files to the dist directory --> <echo
> message="Copies the image of the distribution to ${dist.dir}"/>
>
> Any ideas for next steps?
>
> Justin Dearing
>
>
> ----------------------------------------------------------------------
- --------
>
>
>
>
> _______________________________________________ Tn5250j-develop
> mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/tn5250j-develop
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlYz1fkACgkQefmD4St1GNHyLACgzaivSw1t9fQXZ9So3hDcgDqR
cA4AoNBcXUzkZ7IxELVPWQxWMvCq7kNg
=vKvV
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------