Skip to content

Commit

Permalink
moved the l4j.ini file to this project from the server.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfgilliam committed Apr 25, 2016
1 parent 5c56df2 commit a08f4d3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions SIMRacingAppsServer.l4j.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-Xms256m
-Xmx512m
23 changes: 19 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,20 @@
<property name="iRacing.version" value="${iRacing.major}.${iRacing.minor}_Build_${iRacing.build}" />
<echo message="iRacing Version: ${iRacing.version}" />

<copy overwrite="true" file="SIMRacingAppsServer.l4j.ini" tofile="${java.io.tmpdir}/SIMRacingAppsServer_${version}.l4j.ini" />
<jar destfile="${java.io.tmpdir}/SIMRacingApps.jar">
<manifest>
<attribute name="Manifest-Version" value="${version}" />
<attribute name="Created-By" value="Jeffrey Gilliam" />
<attribute name="Main-Class" value="com.SIMRacingApps.Server" />
</manifest>
<zipgroupfileset file="${java.io.tmpdir}/SIMRacingAppsServer.jar" />
<zipgroupfileset file="${java.io.tmpdir}/SIMRacingAppsPlugin-iRacing_${iRacing.version}.sra" />
<zipgroupfileset file="${java.io.tmpdir}/SIMRacingAppsPlugin-iRacing.sra" />
<fileset dir="${java.io.tmpdir}">
<include name="SIMRacingAppsServer_${version}.l4j.ini" />
</fileset>
</jar>
<delete file="${java.io.tmpdir}/SIMRacingAppsServer_${version}.l4j.ini" />

<launch4j>
<config headerType="console"
Expand Down Expand Up @@ -82,18 +87,25 @@

<target name="deploy_website">
<property file="${SIMRacingAppsServer.location}/src/com/SIMRacingApps/version.properties" prefix="version" />
<property name="buildtype" value="" />
<condition property="buildtype" value="BETA">
<matches string="${version.build}" pattern="^BETA-" />
</condition>
<condition property="buildtype" value="BETA">
<matches string="${version.build}" pattern="^RC-" />
</condition>
<property name="docs" value="${SIMRacingApps.github.io.location}/docs" />
<delete dir="${docs}/documentation" />
<copy todir="${docs}/documentation">
<fileset dir="${SIMRacingAppsServer.location}/Webcontent/documentation" />
</copy>
<delete dir="${docs}/JavaScriptDoc" />
<copy todir="${docs}/JavaScriptDoc">
<fileset dir="${SIMRacingAppsServer.location}/Webcontent/JavaScriptDoc" />
<fileset dir="${deployment.dir}/JavaScriptDoc" />
</copy>
<delete dir="${docs}/JavaDoc" />
<copy todir="${docs}/JavaDoc">
<fileset dir="${SIMRacingAppsServer.location}/Webcontent/JavaDoc" />
<fileset dir="${deployment.dir}/JavaDoc" />
</copy>
<delete dir="${docs}/apps" />
<copy todir="${docs}/apps">
Expand All @@ -119,7 +131,10 @@
<include name="NOTICE.TXT" />
</fileset>
</copy>
<echo file="${SIMRacingApps.github.io.location}/version.json" message='{ "major": "${version.major}", "minor": "${version.minor}", "build": "${version.build}" }' />
<echo
file="${SIMRacingApps.github.io.location}/${buildtype}version.json"
message='{ "major": "${version.major}", "minor": "${version.minor}", "build": "${version.build}" }'
/>
</target>

<target name="release" depends="deploy_website">
Expand Down

0 comments on commit a08f4d3

Please sign in to comment.