forked from BGSU-LITS/LDAP-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
39 lines (34 loc) · 1.22 KB
/
Copy pathbuild.xml
File metadata and controls
39 lines (34 loc) · 1.22 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
39
<?xml version="1.0" encoding="UTF-8"?>
<project name="Omeka Plugin - LDAP" default="package" basedir=".">
<property name="version" value="0.3.1" />
<target name="package" description="Package the files for distribution">
<property name="file" value="${project.basedir}/package/Ldap-${version}.zip" />
<delete file="${file}" />
<zip destfile="${file}">
<fileset dir="${project.basedir}/">
<exclude name="package/**" />
<exclude name="build.xml" />
<exclude name=".DS_Store" />
<exclude name=".git/**" />
<exclude name=".gitignore" />
</fileset>
</zip>
</target>
<target name="transfer" description="Moves the plugin over to the Omeka install">
<resolvepath propertyName="path" file="${project.basedir}/../../../omeka/plugins/Ldap/" />
<phingcall target="rsync">
<property name="path" value="${path}" />
</phingcall>
</target>
<target name="rsync">
<exec executable="rsync" passthru="true" checkreturn="true" escape="false">
<arg value="-rvzu" />
<arg value="${project.basedir}/" />
<arg value="${path}/" />
<arg value="--exclude=build.xml" />
<arg value="--exclude=.git*" />
<arg value="--exclude=.DS_Store" />
<arg value="--exclude=/package" />
</exec>
</target>
</project>