-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (31 loc) · 1.07 KB
/
build.xml
File metadata and controls
38 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<project name="draeton.github.com" basedir="." default="commit">
<macrodef name="git">
<attribute name="command"/>
<attribute name="failonerror" default="true"/>
<attribute name="dir" default=""/>
<element name="args" optional="true"/>
<sequential>
<echo message="git @{command}"/>
<exec executable="git" dir="@{dir}">
<arg line="@{command}"/>
<args/>
</exec>
</sequential>
</macrodef>
<target name="commit" description="Commit new build to master git repo">
<input message="Please enter a commit message:" addproperty="commit.message"/>
<git command="add">
<args><arg line="."/></args>
</git>
<git command="commit">
<args><arg value="-am ${commit.message}"/></args>
</git>
<git command="push">
<args>
<arg value="origin"/>
<arg value="master"/>
</args>
</git>
</target>
</project>