Skip to content

Commit

Permalink
Updates for working build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Oct 9, 2014
1 parent 4041894 commit dd42366
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Binary file modified build/dist/TopCoder_UML_Tool_Installer-1.2.7.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion conf/Version.properties
@@ -1,4 +1,4 @@
#Mon, 06 Oct 2014 15:34:39 -0500
#Thu, 09 Oct 2014 11:59:04 -0500

version=1.2.7
copyrightYear=2014
2 changes: 1 addition & 1 deletion installer/installer.xml
Expand Up @@ -29,7 +29,7 @@
</authors>
<javaversion>1.7</javaversion>
<version>1.2.7</version>
<run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/>
<run-privileged/>
</info>

<guiprefs height="600" resizable="yes" width="800">
Expand Down
14 changes: 13 additions & 1 deletion installer/run.cmd
Expand Up @@ -3,8 +3,12 @@ setlocal

cd /d "%~dp0"

setlocal EnableDelayedExpansion
for /L %%n in (1 1 500) do if "!__cd__:~%%n,1!" neq "" set /a "len=%%n+1"
setlocal DisableDelayedExpansion

set CP=.
for /r ./lib %%V IN (*.jar) DO call :pathmunge "%%V"
for /r ./lib %%V IN (*.jar) DO call :jarmunge "%%V"
call :pathmunge .\resources
call :pathmunge .\conf

Expand All @@ -15,3 +19,11 @@ goto :eof

:pathmunge
set CP=%CP%;%1
goto :eof

:jarmunge
set absPath=%1
setlocal EnableDelayedExpansion
set "relPath=!absPath:~%len%!"
set path=".!relPath!
endlocal & set CP=%CP%;%path%

0 comments on commit dd42366

Please sign in to comment.