Author: sebawagner
Date: Wed Aug  1 10:40:19 2012
New Revision: 1367912

URL: http://svn.apache.org/viewvc?rev=1367912&view=rev
Log:
OPENMEETINGS-3 - Build file for moodle plugin

Added:
    incubator/openmeetings/trunk/plugins/moodle_plugin/build.xml
Modified:
    incubator/openmeetings/trunk/plugins/moodle_plugin/   (props changed)

Propchange: incubator/openmeetings/trunk/plugins/moodle_plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Aug  1 10:40:19 2012
@@ -0,0 +1 @@
+dist

Added: incubator/openmeetings/trunk/plugins/moodle_plugin/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/moodle_plugin/build.xml?rev=1367912&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/moodle_plugin/build.xml (added)
+++ incubator/openmeetings/trunk/plugins/moodle_plugin/build.xml Wed Aug  1 
10:40:19 2012
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ -->
+<!DOCTYPE project>
+<project name="openmeetings moodle plugin" basedir="./" default="dist-bin" 
+       xmlns="antlib:org.apache.tools.ant">
+
+       <property name="dist.dir" value="dist" />
+       <property name="project.version" value="1.4" />
+       <property name="project.distname" value="openmeetings-moodle-plugin" />
+       <property name="plugin.name" value="openmeetings" />
+
+       <target name="dist-bin" depends="clean">
+               <property name="archive.file.name" 
value="${dist.dir}/apache-${project.distname}-incubating-${project.version}" />
+
+               <mkdir dir="${dist.dir}/${plugin.name}"/>
+               <copy todir="${dist.dir}/${plugin.name}">
+                       <fileset dir="${basedir}">
+                               <exclude name="build.xml"/>
+                       </fileset>
+               </copy>
+               <zip destfile="${archive.file.name}.zip">
+                       <zipfileset dir="${dist.dir}/${plugin.name}">
+                               <include name="**" />
+                       </zipfileset>
+               </zip>
+               <zip destfile="${archive.file.name}-src.zip">
+                       <zipfileset dir="${basedir}">
+                               <exclude name="*dist/**" />
+                       </zipfileset>
+               </zip>
+               <tar longfile="gnu" compression="gzip" 
destfile="${archive.file.name}.tar.gz">
+                       <tarfileset dir="${dist.dir}/${plugin.name}">
+                       </tarfileset>
+               </tar>
+               <tar longfile="gnu" compression="gzip" 
destfile="${archive.file.name}-src.tar.gz">
+                       <tarfileset dir="${basedir}">
+                               <exclude name="*dist/**" />
+                       </tarfileset>
+               </tar>
+       </target>
+
+       <target name="clean">
+               <delete includeemptydirs="true" dir="${dist.dir}" />
+       </target>
+
+</project>
\ No newline at end of file


Reply via email to