Skip to content

Commit

Permalink
Add flexibility to client build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
billtomczak committed Jul 28, 2021
1 parent ea1d456 commit 9d24368
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/build-include.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="ShackBuilder" default="build">
<project name="ShackBuilder" default="copy">
<property name="builder.include.name" value="${phing.project.name} for includes"/>
<echo message="${phing.project.name} ${builder.version}"/>
<echo message="${builder.include.name} ${builder.version}"/>

<!-- Properties -->
<!-- Try to get the project path from the build.properties, for deployment environment -->
Expand Down
7 changes: 4 additions & 3 deletions src/clients/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ Missing 'build.properties' file in the project root folder
Missing 'builder.path' property
</fail>

<property name="builder.type" value="build"/>
<if>
<available file="${builder.path}/src/build.xml" type="file"/>
<available file="${builder.path}/src/${builder.type}.xml" type="file"/>
<then>
<import file="${builder.path}/src/build.xml"/>
<import file="${builder.path}/src/${builder.type}.xml"/>
</then>
<else>
<fail>-
Missing 'build.xml' file in builder source path
Missing '${builder.file}.xml' file in builder source path
</fail>
</else>
</if>
Expand Down

0 comments on commit 9d24368

Please sign in to comment.