We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7a10a0 commit 70057fbCopy full SHA for 70057fb
build.xml
@@ -208,6 +208,15 @@
208
</target>
209
210
<target name="-phar-determine-version">
211
- <exec command="php ${project.basedir}/phpdraft --version | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}-?(rc|beta)?[0-9]?'" outputproperty="version"/>
+ <exec executable="php" outputProperty="preVersion">
212
+ <arg path="${project.basedir}/phpdraft"/>
213
+ <arg value="--version"/>
214
+ </exec>
215
+ <echo message="${preVersion}"/>
216
+ <propertyregex property="version"
217
+ subject="${preVersion}"
218
+ pattern="([0-9]{1,}\.)+[0-9]{1,}-?(rc|beta)?[0-9]?"
219
+ match="$0"/>
220
+ <echo message="${version}"/>
221
222
</project>
0 commit comments