-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
25 lines (24 loc) · 1.07 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="help" name="CrossSiteDeploy">
<target name="help" description="Prints usage info using -projecthelp">
<java classname="org.apache.tools.ant.Main">
<arg value="-buildfile" />
<arg value="${ant.file}" />
<arg value="-projecthelp" />
</java>
</target>
<!-- Credentials task -->
<target name="credentials" description="Ask for user credentials">
<input addproperty="sf.username">Please enter sourceforge username:</input>
<input addproperty="project.version">Please enter project version:</input>
</target>
<!-- Site deployment task -->
<target name="site-deploy" description="Deploy site to sourceforge" depends="credentials">
<exec command="rsync" inputstring="">
<arg value="-avtruP"/>
<arg value="-e ssh "/>
<arg value="target/site/"/>
<arg value="${sf.username},[email protected]:htdocs/maven/cross/${project.version}"/>
</exec>
</target>
</project>