Skip to content

Commit

Permalink
added packaging files
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Nov 11, 2013
1 parent 7a82059 commit ea67ebe
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
38 changes: 38 additions & 0 deletions webapp/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="WeGA-WebApp">
<property name="project.version" value="1.2dev"/>
<property name="project.app" value="WeGA-WebApp"/>
<property name="build.dir" value="build"/>

<target name="all" depends="xar"/>
<target name="rebuild" depends="clean,all"/>

<target name="clean">
<delete dir="${build}"/>
<delete file="expath-pkg.xml"/>
</target>

<target name="xar">
<mkdir dir="${build.dir}"/>
<copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
<filterset>
<filter token="project.version" value="${project.version}"/>
</filterset>
</copy>
<zip destfile="${build.dir}/${project.app}-${project.version}.xar">
<fileset dir=".">
<include name="*.*"/>
<include name="css/**"/>
<include name="fonts/**"/>
<include name="jscript/**"/>
<include name="pix/**"/>
<include name="xml/**"/>
<include name="xql/**"/>
<include name="xsl/**"/>
<exclude name="${build}/*"/>
<exclude name=".git*"/>
<exclude name="*.tmpl"/>
</fileset>
</zip>
</target>
</project>
6 changes: 6 additions & 0 deletions webapp/expath-pkg.xml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://expath.org/ns/pkg" name="http://www.weber-gesamtausgabe.de/webapp"
abbrev="WeGA-WebApp" version="@project.version@" spec="1.0">
<title>WeGA WebApp</title>
<dependency package="http://exist-db.org/apps/shared"/>
</package>
14 changes: 14 additions & 0 deletions webapp/repo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<meta xmlns="http://exist-db.org/xquery/repo">
<description>WeGA WebApp</description>
<author>Carl-Maria-von-Weber-Gesamtausgabe</author>
<website>https://github.com/Edirom/WeGA-WebApp</website>
<status>dev</status>
<license>CC BY 3.0</license>
<copyright>true</copyright>
<type>application</type>
<target>WeGA-WebApp</target>
<prepare>pre-install.xql</prepare>
<finish/>
<!-- <permissions user="guest" password="guest" group="guest" mode="rw-rw-r-\-"/>-->
</meta>

0 comments on commit ea67ebe

Please sign in to comment.