Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dependencies to the dependencies.xml in the eclipse ant build t… #119

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
<pathelement path="${dependencies.basedir.windows}" />
</path>
<pathconvert targetos="unix" property="dependencies.basedir" refid="dependencies.basedir.path"/>
<echo message="Using windows directory format: ${line.separator}"/>
<echo message="dependencies.basedir = ${dependencies.basedir}"/>
</target>

<target name="unix.directory.format" unless="isWindows">
<dirname property="dependencies.basedir" file="${ant.file.dependencies}"/>
<echo message="Using unix directory format: ${line.separator}"/>
<echo message="dependencies.basedir = ${dependencies.basedir}"/>
</target>

<!-- ================================================================== -->
Expand Down
5 changes: 3 additions & 2 deletions interfaces/eclipse/build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="mopt.xtext" default="default">
<import file="../../build/ant/build-common.xml"/>
<import file="../../dependencies.xml"/>

<condition property="isWindows">
<os family="windows" />
Expand All @@ -24,7 +25,7 @@
</exec>
</target>

<target name="maven.build" depends="render.target.template" unless="isWindows">
<target name="maven.build" depends="render.target.template, unix.directory.format" unless="isWindows">
<exec dir="." executable="mvn" failifexecutionfails="true" failonerror="true">
<arg value="-f" />
<arg value="src/pom.xml"/>
Expand All @@ -40,7 +41,7 @@

<!-- Render target file from a template to point to the local maven repository -->

<target name="render.target.template">
<target name="render.target.template" depends="unix.directory.format, windows.directory.format">

<!-- Copy task that replaces values and copies the files -->
<copy todir="src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.target/" verbose="true" overwrite="true" failonerror="true">
Expand Down
Loading