Project

General

Profile

Bug #4995

ant installer fails under Linux

Added by Christopher Brooks over 10 years ago. Updated almost 8 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
build system
Target version:
Start date:
05/09/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4995

Description

In a clean Kepler 2.0 tree, "ant installer" fails under linux:

build-macapp:
[echo] jarbunder
[null] Deleting directory /home/cxh/src/kepler-2.0/Kepler.app
[jarbundler] Creating application bundle: /home/cxh/src/kepler-2.0/Kepler.app

BUILD FAILED
/home/cxh/src/kepler-2.0/build-area/build.xml:339: The following error occurred while executing this line:
/home/cxh/src/kepler-2.0/build-area/build.xml:370: The following error occurred while executing this line:
/home/cxh/src/kepler-2.0/build-area/build.xml:439: Cannot copy Java Application Stub: java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources/MacOS/JavaApplicationStub (No such file or directory)

The problem is that the JavaApplicationStub file is not present under Linux.

History

#1 Updated by David Welker over 10 years ago

Is the "ant installer" command even supposed to work under Linux? I was under the impression that this command was intended for internal releases, not for widespread use besides that.

#2 Updated by Christopher Brooks over 10 years ago

If "ant help" reports an ant target, then users will run it.
Someone already was running "ant installer" on what looks like Linux,
see
http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-users/2010-April/002154.html

It is possible to build izpack Windows installers on non-Windows platforms.

#3 Updated by Christopher Brooks over 8 years ago

The installer target was removed from build.xml, so this bug is moot.

I was able to build a Windows installer under Linux with:
ant make-windows-installer -Dversion=2.4.devel

#4 Updated by Christopher Brooks almost 8 years ago

build.xml lists an installer target that invokes make-mac-installer which
fails under linux:

[make-macosx-installer] hdiutil create -srcfolder /home/hudson/jobs/kepler/finished-kepler-ins\
tallers/macosx/Kepler-2.4.devel /home/hudson/jobs/kepler/finished-kepler-installers/macosx/Kep\
ler-2.4.devel.dmg

BUILD FAILED
/home/hudson/jobs/kepler/workspace/build-area/build.xml:263: java.io.IOException: Cannot run p\
rogram "hdiutil": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at org.kepler.build.util.CommandLine.exec(CommandLine.java:87)
at org.kepler.build.installer.MakeMacOSXInstaller.run(MakeMacOSXInstaller.java:84)
at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:102)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:4\
3)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 19 more

http://superuser.com/questions/226439/hdiutil-on-linux
says that there is no linux port of hdiutil.

#5 Updated by Redmine Admin over 7 years ago

Original Bugzilla ID was 4995

Also available in: Atom PDF