-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
31 lines (28 loc) · 1.08 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
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<!-- Useful Ant build script to generate a zip file -->
<project name="PASTA Week X" default="Submit to PASTA">
<target name="Submit Easy Task">
<property name="pasta.id" value="1"/>
<antcall target="Submit to PASTA"/>
</target>
<target name="Submit Medium Task">
<property name="pasta.id" value="2"/>
<antcall target="Submit to PASTA"/>
</target>
<target name="Submit Hard Task">
<property name="pasta.id" value="3"/>
<antcall target="Submit to PASTA"/>
</target>
<target name="PASTAzip" description="Create zip archive for PASTA submission">
<zip destfile="pasta_submission.zip">
<zipfileset dir="src" prefix="src"/>
</zip>
</target>
<target name="Submit to PASTA" description="Submits task to PASTA">
<antcall target="PASTAzip"/>
<input message="PASTA assignment ID" addproperty="pasta.id"/>
<exec executable="~/.local/pasta-uploader/main.py">
<arg line="submit ${pasta.id}"/>
</exec>
</target>
</project>