darksmilie
Erfahrenes Mitglied
Hi
gibt es ein Ant task womit ich ein 7z archiv erstellen kann?
gibt es ein Ant task womit ich ein 7z archiv erstellen kann?
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<target name="compile">
<property name="jarpath" value="jar"/>
<property name="compilefile" value="${jarpath}\compile.bat"/>
<exec executable="${compilefile}">
<arg value="${jarpath}/compile install.xml -b . -o install.jar -k standard"/>
</exec>
</target>
Buildfile: c:\installer\build.xml
compile:
[exec] .:: IzPack - Version 3.9.0 ::.
[exec] < compiler specifications version : 1.0 >
[exec] - Copyright (C) 2001-2006 Julien Ponge
[exec] - Visit http://www.izforge.com/ for the latests releases
[exec] - Released under the terms of the Apache Software License version 2.0.
[exec] -> Processing : jar/compile install.xml -b . -o install.jar -k standard
[exec] -> Output : jar/compile install.xml -b . -o install.jar -k standjar
[exec] -> Base path : .
[exec] -> Kind : standard
[exec] -> Compression : default
[exec] -> Compr. level: -1
[exec] -> IzPack home : .
[exec] -> Fatal error :
[exec] Invalid file: C:\installer\jar\compile install.xml -b . -o install.jar -k standard
[exec] com.izforge.izpack.compiler.CompilerException: Invalid file: C:\installer\jar\compile install.xml -b . -o install.jar -k standard
[exec] at com.izforge.izpack.compiler.CompilerConfig.getXMLTree(CompilerConfig.java:1360)
[exec] at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:306)
[exec] at com.izforge.izpack.compiler.CompilerConfig.main(CompilerConfig.java:1854)
[exec] at com.izforge.izpack.compiler.Compiler.main(Compiler.java:615)
[exec] (tip : use -? to get the commmand line parameters)
init:
BUILD SUCCESSFUL
BUILD SUCCESSFUL
Total time: 0 seconds
Windows Users
The <exec> task delegates to Runtime.exec which in turn apparently calls ::CreateProcess. It is the latter Win32 function that defines the exact semantics of the call. In particular, if you do not put a file extension on the executable, only ".EXE" files are looked for, not ".COM", ".CMD" or other file types listed in the environment variable PATHEXT. That is only used by the shell.
Note that .bat files cannot in general by executed directly. One normally needs to execute the command shell executable cmd using the /c switch.