Skip to content

Commit 4efbd07

Browse files
author
Devendra
committed
replace VERSION before compile in maven build
1 parent c82ce16 commit 4efbd07

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎android/build.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
<property name="maven-staging-repository-url" value="https://oss.sonatype.org/service/local/staging/deploy/maven2/" />
145145

146146
<target name="debug-compile" description="compile the source with logging and debug">
147+
<replace dir="${maven}/src" token='static String VERSION = ""' value='static String VERSION = "${VERSION}"' >
148+
<include name="**/*.java"/>
149+
</replace>
147150
<replace dir="${maven}/src" token="boolean LOGGING = false" value="boolean LOGGING = true">
148151
<include name="**/*.java"/>
149152
</replace>
@@ -155,6 +158,9 @@
155158
</replace>
156159
</target>
157160
<target name="compile" description="compile the source ">
161+
<replace dir="${maven}/src" token='static String VERSION = ""' value='static String VERSION = "${VERSION}"' >
162+
<include name="**/*.java"/>
163+
</replace>
158164
<javac debug="${debug}" srcdir="${maven}/src" destdir="${build}" >
159165
<classpath refid="PubnubApi.classpath"/>
160166
</javac>

0 commit comments

Comments
 (0)