* add .cmd launcher to portable distro

This commit is contained in:
Reinhard Pointner 2012-11-04 02:10:27 +00:00
parent 9841e45f0e
commit 46f5e98c55
4 changed files with 7 additions and 5 deletions

View File

@ -307,11 +307,11 @@
<mkdir dir="${dir.dist}/portable" />
<copy file="${path.fatjar}" tofile="${dir.dist}/portable/FileBot.jar" />
<copy todir="${dir.dist}/portable">
<fileset dir="${dir.installer}/portable" includes="*.exe, *.ini, *.sh" />
<fileset dir="${dir.installer}/portable" includes="*.exe, *.ini, *.cmd, *.sh" />
</copy>
<zip destfile="${dir.dist}/FileBot_${version}-portable.zip">
<zipfileset dir="${dir.dist}/portable" includes="*.jar, *.exe, *.ini" />
<zipfileset dir="${dir.dist}/portable" includes="*.jar, *.exe, *.ini, *.cmd" />
<zipfileset dir="${dir.dist}/portable" includes="*.sh" filemode="755" />
</zip>
</target>

View File

@ -16,7 +16,7 @@
# do not use native shell for move/copy operations
-DuseNativeShell=false
# use NTFS extended attributes for storing metadata
# do not use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=false
# memory settings

View File

@ -13,8 +13,8 @@
# do not use native shell for move/copy operations
-DuseNativeShell=false
# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=true
# do not use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=false
# memory settings
-Xmx256m

View File

@ -0,0 +1,2 @@
@ECHO OFF
java -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=%~dp0." "-Duser.home=%~dp0." "-Djava.io.tmpdir=%~dp0temp" "-Djna.library.path=%~dp0." "-Djava.library.path=%~dp0." -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory "-Dnet.sourceforge.tuned.prefs.file=%~dp0prefs.properties" -jar "%~dp0FileBot.jar" %*