directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r546799 - in /directory/studio/trunk/studio-schemaeditor-plugin: build.xml plugin.properties
Date Wed, 13 Jun 2007 10:03:48 GMT
Author: pamarcelot
Date: Wed Jun 13 03:03:45 2007
New Revision: 546799

URL: http://svn.apache.org/viewvc?view=rev&rev=546799
Log:
Update the Apache Directory Studio Schemas Editor Plugin with the new build system.

Modified:
    directory/studio/trunk/studio-schemaeditor-plugin/build.xml
    directory/studio/trunk/studio-schemaeditor-plugin/plugin.properties

Modified: directory/studio/trunk/studio-schemaeditor-plugin/build.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor-plugin/build.xml?view=diff&rev=546799&r1=546798&r2=546799
==============================================================================
--- directory/studio/trunk/studio-schemaeditor-plugin/build.xml (original)
+++ directory/studio/trunk/studio-schemaeditor-plugin/build.xml Wed Jun 13 03:03:45 2007
@@ -16,141 +16,21 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<project default="jar" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
-	<property name="project.name" value="org.apache.directory.studio.schemas" />
-	<property name="project.version" value="0.8.0" />
-
-	<property name="studio.schemas.output" value="${basedir}/target" />
-	<property name="studio.schemas.build" value="${studio.schemas.output}/build" />
-	<property name="studio.schemas.src" value="${basedir}/src/main/java" />
-
-	<property name="lib.dir" value="lib" />
-
-	<property name="repository.dir" location="../dependencies/externals/"/>
-
-	<!-- Configuring Ivy (Needs to be AFTER the $repository.dir declaration) -->
-	<ivy:configure file="../tools/ivyconf.xml"/>
-
-	<!-- ================================== -->
-	<!--               RESOLVE              -->
-	<!-- ================================== -->
-	<target name="resolve" description="--> retreive dependencies with ivy">
-		<ivy:retrieve/>
-		<ant dir="../studio-jars" inheritAll="no" target="resolve" />
-	</target>
-
-	<!-- ================================== -->
-	<!--             CLASSPATH              -->
-	<!-- ================================== -->
-	<target name="build-classpath" description="Computes a classpath according to current
OS" >
+<project  default="plugin">
+	<import file="../studio-build/build.xml"/>
+	
+	<!-- BUILD-CLASSPATH TASK -->
+	<target name="build-classpath" description="Computes the classpath" >
 		<path id="classpath">
+			<!-- Project dependencies -->
+			<fileset dir="${lib.dir}" />
+			<!-- Eclipse dependencies -->
 			<fileset dir="../dependencies/eclipse/3.2">
 				<include name="**/*.jar"/>
-			</fileset>
-			<fileset dir="${lib.dir}" />
+			</fileset>
+			<!-- Plugin dependencies -->
 			<fileset dir="../studio-jars/lib/" />
 		</path>
 	</target>
-
-	<!-- ================================== -->
-	<!--             COMPILE                -->
-	<!-- ================================== -->
-	<target name="compile" depends="resolve,checkclasses,build-classpath" unless="classes-up2date"
description="Compiles the plugin">
-		<mkdir dir="${studio.schemas.build}" />
-		<copy todir="${studio.schemas.build}">
-			<fileset dir="${basedir}">
-				<include name="log4j.conf" />
-				<include name="plugin.xml" />
-				<include name="plugin.properties" />
-				<include name="toc.xml" />
-			</fileset>
-		</copy>
-		<mkdir dir="${studio.schemas.build}/${lib.dir}" />
-		<copy todir="${studio.schemas.build}/${lib.dir}">
-			<fileset dir="${basedir}/${lib.dir}">
-				<include name="*.jar" />
-			</fileset>
-		</copy>
-		<mkdir dir="${studio.schemas.build}/META-INF" />
-		<copy todir="${studio.schemas.build}/META-INF">
-			<fileset dir="${basedir}/META-INF">
-				<include name="**" />
-			</fileset>
-		</copy>
-		<mkdir dir="${studio.schemas.build}/ressources" />
-		<copy todir="${studio.schemas.build}/ressources">
-			<fileset dir="${basedir}/ressources">
-				<include name="**" />
-			</fileset>
-		</copy>
-		<copy todir="${studio.schemas.build}">
-			<fileset dir="${basedir}/src/main/resources">
-				<include name="**" />
-			</fileset>
-		</copy>
-		<javac
-			source="1.5"
-			debug="yes"
-			srcdir="${studio.schemas.src}"
-			excludes=""
-			destdir="${studio.schemas.build}"
-			classpathref="classpath"
-			listfiles="yes" />
-
-		<tstamp>
-			<format pattern="yyyy-MMM-dd, HH:mm 'GMT'Z" property="timestamp" locale="en" />
-		</tstamp>
-		<echo message="${project.name}-${project.version} compiled ${timestamp} by ${user.name}"
file="${studio.schemas.build}/compile.timestamp" />
-	</target>
-
-	<target name="checkclasses">
-		<uptodate property="classes-up2date" targetfile="${studio.schemas.build}/compile.timestamp">
-			<srcfiles dir="${studio.schemas.src}" />
-		</uptodate>
-	</target>
-
-
-	<!-- ================================== -->
-	<!--              JAR                   -->
-	<!-- ================================== -->
-	<target name="jar" description="Creates a jar file" depends="compile">
-		<jar destfile="${studio.schemas.output}/${project.name}_${project.version}.jar" manifest="${studio.schemas.build}/META-INF/MANIFEST.MF">
-			<fileset dir="${studio.schemas.build}" excludes="compile.timestamp" />
-		</jar>
-	</target>
-
-	<!-- ================================== -->
-	<!--              JAVADOC               -->
-	<!-- ================================== -->
-	<target name="javadoc" description="Generate Javadoc files">
-		<mkdir dir="${basedir}/doc" />
-		<javadoc destdir="${basedir}/doc">
-			<fileset dir="src/main/java" defaultexcludes="yes">
-				<include name="org/apache/directory/studio/**"/>
-			</fileset>
-		</javadoc>
-	</target>
 	
-	<!-- ================================== -->
-	<!--               CLEAN                -->
-	<!-- ================================== -->
-	<target name="clean" description="Deletes any generated file (javadoc, classes, jars,
distribution)">
-		<delete includeemptydirs="true">
-			<fileset dir="${basedir}">
-				<exclude name=".project" />
-				<exclude name=".classpath" />
-				<exclude name="build.properties" />
-				<exclude name="build.xml" />
-				<exclude name="icons/**" />
-				<exclude name="ivy.xml" />
-				<exclude name="log4j.conf" />
-				<exclude name="META-INF/**" />
-				<exclude name="plugin.xml" />
-				<exclude name="plugin.properties" />
-				<exclude name="ressources/**" />
-				<exclude name="src/**" />
-				<exclude name="toc.xml" />
-			</fileset>
-		</delete>
-	</target>
 </project>

Modified: directory/studio/trunk/studio-schemaeditor-plugin/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor-plugin/plugin.properties?view=diff&rev=546799&r1=546798&r2=546799
==============================================================================
--- directory/studio/trunk/studio-schemaeditor-plugin/plugin.properties (original)
+++ directory/studio/trunk/studio-schemaeditor-plugin/plugin.properties Wed Jun 13 03:03:45
2007
@@ -20,8 +20,11 @@
 # This file stores the Strings used by the User Interface of the application
 #
 
-# Contains translated Strings for the Schemas plugin
+project.name=Apache Directory Studio Schemas Editor Plug-in
+project.version=0.8.0
+project.id=org.apache.directory.studio.schemas
 
+# Contains translated Strings for the Schemas plugin
 studio-schemaeditor-plugin.perspective.schemas.name=Schemas
 
 studio-schemaeditor-plugin.views.category.name=Schemas Editor



Mime
View raw message