Skip to content

Commit 70057fb

Browse files
authored
fix: restore phar-building (#638)
1 parent d7a10a0 commit 70057fb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@
208208
</target>
209209

210210
<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"/>
211+
<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}"/>
212221
</target>
213222
</project>

0 commit comments

Comments
 (0)