Skip to content

Commit

Permalink
adding debug-build target to all build files
Browse files Browse the repository at this point in the history
  • Loading branch information
Devendra committed Jul 9, 2013
1 parent 8b1f98a commit d07f3a1
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions blackberry/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target name="setDebugTrue" >
<replace dir="${srcPubnubApi.link}" token="boolean LOGGING = false" value="boolean LOGGING = true">
<include name="**/*.java"/>
</replace>
</target>
<target name="unsetDebugTrue" >
<replace dir="${srcPubnubApi.link}" token="boolean LOGGING = true" value="boolean LOGGING = false">
<include name="**/*.java"/>
</replace>
</target>
<target depends="setDebugTrue,build,unsetDebugTrue" name="debug-build"/>
<target depends="create-jar, clean" name="build"/>
<target depends="build-project" name="create-jar">
<jar destfile="${pubnub_lib_jar}"
Expand Down
5 changes: 5 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<fileset dir="." includes="*/build.xml" />
</subant>
</target>
<target name="debug-build">
<subant target="debug-build" >
<fileset dir="." includes="*/build.xml" />
</subant>
</target>
<target name="test">
<subant target="test" >
<fileset dir="." includes="*/build.xml" />
Expand Down
11 changes: 11 additions & 0 deletions codenameone/PubnubClientSDK/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@
<copy file="dist/PubnubClientSDK.cn1lib" tofile="../pubnub-codenameone-${VERSION}.cn1lib"/>
</target>

<target name="setDebugTrue" >
<replace dir="../../java/srcPubnubApi" token="boolean LOGGING = false" value="boolean LOGGING = true">
<include name="**/*.java"/>
</replace>
</target>
<target name="unsetDebugTrue" >
<replace dir="../../java/srcPubnubApi" token="boolean LOGGING = true" value="boolean LOGGING = false">
<include name="**/*.java"/>
</replace>
</target>

<target depends="setDebugTrue,build,unsetDebugTrue" name="debug-build"/>
<target depends="create-src, default, delete-src, copy-lib, clean" name="build">
</target>

Expand Down
5 changes: 5 additions & 0 deletions codenameone/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<fileset dir="." includes="*/build.xml" />
</subant>
</target>
<target name="debug-build">
<subant target="debug-build" >
<fileset dir="." includes="*/build.xml" />
</subant>
</target>
<target name="test">
<subant target="test" >
<fileset dir="." includes="*/build.xml" />
Expand Down
11 changes: 11 additions & 0 deletions j2me/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target name="setDebugTrue" >
<replace dir="${srcPubnubApi.link}" token="boolean LOGGING = false" value="boolean LOGGING = true">
<include name="**/*.java"/>
</replace>
</target>
<target name="unsetDebugTrue" >
<replace dir="${srcPubnubApi.link}" token="boolean LOGGING = true" value="boolean LOGGING = false">
<include name="**/*.java"/>
</replace>
</target>
<target depends="setDebugTrue,build,unsetDebugTrue" name="debug-build"/>
<target depends="create-jar, clean" name="build"/>
<target depends="build-project" name="create-jar">
<jar destfile="${pubnub_lib_jar}"
Expand Down

0 comments on commit d07f3a1

Please sign in to comment.