| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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. |
| --> |
| <project default="plugin"> |
| <import file="../studio-build/build.xml"/> |
| |
| |
| <!-- RETRIEVE-STUDIO-JAR-DEPENDENCIES TASK --> |
| <target name="retrieve-studio-jar-dependencies" description="Compiles the dependencies of the project" > |
| <ant dir="../studio-jars" target="retrieve-dependencies" inheritall="false" /> |
| </target> |
| |
| |
| <!-- COMPILE-DEPENDENCIES TASK --> |
| <target name="compile-dependencies" description="Compiles the dependencies of the project" > |
| <ant dir="../studio-connection-core" target="compile" inheritall="false" /> |
| <ant dir="../studio-connection-ui" target="compile" inheritall="false" /> |
| <ant dir="../studio-ldapbrowser-core" target="compile" inheritall="false" /> |
| <ant dir="../studio-ldapbrowser-common" target="compile" inheritall="false" /> |
| <ant dir="../studio-ldifeditor" target="compile" inheritall="false" /> |
| </target> |
| |
| |
| <!-- BUILD-CLASSPATH TASK --> |
| <target name="build-classpath" depends="retrieve-studio-jar-dependencies,compile-dependencies" description="Computes the classpath" > |
| <echo>Building classpath for ${project.name} (${project.id}) version ${project.version}</echo> |
| <path id="classpath"> |
| <!-- Project dependencies --> |
| <fileset dir="${lib.dir}" /> |
| <!-- Eclipse dependencies --> |
| <fileset dir="../dependencies/eclipse/3.2"> |
| <include name="**/*.jar"/> |
| </fileset> |
| <!-- Plugin dependencies --> |
| <fileset dir="../studio-jars/lib/" /> |
| <pathelement location="../studio-connection-core/target/classes"/> |
| <pathelement location="../studio-connection-ui/target/classes"/> |
| <pathelement location="../studio-ldapbrowser-core/target/classes"/> |
| <pathelement location="../studio-ldapbrowser-common/target/classes"/> |
| <pathelement location="../studio-ldifeditor/target/classes"/> |
| </path> |
| </target> |
| |
| |
| <!-- PLUGIN TASK --> |
| <target name="plugin" depends="pre-plugin,studio-build.plugin" /> |
| |
| |
| <!-- PRE-PLUGIN TASK --> |
| <target name="pre-plugin"> |
| <mkdir dir="${target.build}" /> |
| <copy todir="${target.build}" failonerror="false"> |
| <fileset dir="${basedir}"> |
| <include name="about.ini" /> |
| <include name="studio.png" /> |
| </fileset> |
| </copy> |
| </target> |
| |
| </project> |
| |