Sitelet https://github.com/keep-trying-00/java/commit/0eb14e253125b300a4209748f50266b65f9b644e
Skip to content

Commit 0eb14e2

Browse files
author
Devendra
committed
update version while maven build
1 parent 969e05c commit 0eb14e2

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎android/build.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@
239239
<fileset dir="${sources_pubnub_logging}" />
240240
<fileset dir="${sources_pubnub_crypto}" />
241241
</copy>
242+
<replace dir="${maven}/src" token='static String VERSION = ""' value='static String VERSION = "${VERSION}"'>
243+
<include name="**/*.java"/>
244+
</replace>
242245
<mkdir dir="${dist}/lib" />
243246
<antcall target="stage"/>
244247
<antcall target="maven_clean"/>
@@ -256,6 +259,9 @@
256259
<fileset dir="${sources_pubnub_java}" />
257260
<fileset dir="${sources_pubnub_logging}" />
258261
</copy>
262+
<replace dir="${maven}/src" token='static String VERSION = ""' value='static String VERSION = "${VERSION}"'>
263+
<include name="**/*.java"/>
264+
</replace>
259265
<replace dir="${maven}/src" token="boolean LOGGING = false" value="boolean LOGGING = true">
260266
<include name="**/*.java"/>
261267
</replace>

‎java/build.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@
316316
<fileset dir="${sources_pubnub_java}" />
317317
<fileset dir="${sources_pubnub_crypto}" />
318318
</copy>
319+
<replace dir="${maven}/src" token='static String VERSION = ""' value='static String VERSION = "${VERSION}"'>
320+
<include name="**/*.java"/>
321+
</replace>
319322
<mkdir dir="${dist}/lib" />
320323
<antcall target="stage"/>
321324
<antcall target="maven_clean"/>
@@ -333,6 +336,9 @@
333336
<fileset dir="${sources_pubnub_logging}" />
334337
<fileset dir="${sources_pubnub_crypto}" />
335338
</copy>
339+
<replace dir="${maven}/src" token='static String VERSION = ""' value='static String VERSION = "${VERSION}"'>
340+
<include name="**/*.java"/>
341+
</replace>
336342
<replace dir="${maven}/src" token="boolean LOGGING = false" value="boolean LOGGING = true">
337343
<include name="**/*.java"/>
338344
</replace>

0 commit comments

Comments
 (0)