-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build system to pull all binary dependencies remotely, inclu…
…ding travis * Add target: bootstrap, this must be run first and only once * Add ivy*LogLevel variables for showing log output. * Clean up build files.
- Loading branch information
Showing
45 changed files
with
447 additions
and
300 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
Umplificator/cruise.umple.umplificator.model.workflow.edit/.svnignore
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
Umplificator/cruise.umple.umplificator.model.workflow/.svnignore
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
svn.properties | ||
|
||
deps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir=".." name="UmpleDeps" xmlns:ivy="antlib:org.apache.ivy.ant"> | ||
|
||
<!-- ``````````````````````````` | ||
Environment Variables | ||
``````````````````````````` --> | ||
<!-- Ivy Configuration --> | ||
<property name="ivy.install.version" value="2.4.0" /> | ||
<property name="user.home.ant" value="${user.home}/.ant/lib" /> | ||
<property name="ivy.jar.file" value="${user.home.ant}/ivy-${ivy.install.version}.jar" /> | ||
|
||
<property name="umple.ivy.dep.file" value="${basedir}/build/ivy.xml" /> | ||
|
||
<!-- Umple Last --> | ||
<property name="umple.deps.dir" value="${basedir}/deps" /> | ||
<property name="umple.deps.manual.dir" value="${umple.deps.dir}/manual" /> | ||
<property name="umple.last.jar.file" value="${umple.deps.dir}/umple-${umple.version}.jar" /> | ||
|
||
<!-- Macros used to work nicely with Ivy --> | ||
|
||
<macrodef name="deps-get-path"> | ||
<attribute name="conf" description="Ivy configuration to load"/> | ||
<attribute name="pathid" description="Ant pathid retrieved jars load into"/> | ||
<sequential> | ||
<path id="@{pathid}"> | ||
<fileset file="${umple.deps.dir}/@{conf}/*.jar" /> | ||
</path> | ||
</sequential> | ||
</macrodef> | ||
|
||
<macrodef name="deps-resolve-private"> | ||
<attribute name="conf" description="Ivy configuration to load"/> | ||
<attribute name="pathid" description="Ant pathid retrieved jars load into"/> | ||
<attribute name="pattern" description="Pattern given to 'ivy:retrieve'"/> | ||
<attribute name="transitive" description="Transitive 'ivy:resolve'" default="true"/> | ||
|
||
<sequential> | ||
<echo>Resolving ivy configuration, @{conf}.</echo> | ||
<ivy:resolve file="${umple.ivy.dep.file}" conf="@{conf}" transitive="@{transitive}" log="download-only"/> | ||
|
||
<mkdir dir="${umple.deps.dir}/@{conf}" /> | ||
<ivy:retrieve pattern="@{pattern}" symlink="false" log="quiet"/> | ||
|
||
<deps-get-path conf="@{conf}" pathid="@{pathid}" /> | ||
</sequential> | ||
</macrodef> | ||
|
||
<macrodef name="deps-resolve"> | ||
<attribute name="conf" description="Ivy configuration to load"/> | ||
<attribute name="pathid" description="Ant pathid retrieved jars load into"/> | ||
<sequential> | ||
<taskdef resource="net/sf/antcontrib/antcontrib.properties" /> | ||
|
||
<if> <!-- Only run the resolve if the cache path isn't known about --> | ||
<not><isreference refid="@{pathid}" /></not> | ||
<then> | ||
<deps-resolve-private conf="@{conf}" | ||
pathid="@{pathid}" | ||
pattern="${umple.deps.dir}/[conf]/[artifact].[ext]" | ||
transitive="true" /> | ||
</then> | ||
</if> | ||
</sequential> | ||
</macrodef> | ||
|
||
<macrodef name="deps-declare-taskdef"> | ||
<sequential> | ||
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" /> | ||
<taskdef resource="net/sf/antcontrib/antcontrib.properties" /> | ||
</sequential> | ||
</macrodef> | ||
|
||
<!-- Install Ivy: --> | ||
<target name="bootstrap" description="Install Ivy and Build requirements"> | ||
|
||
<mkdir dir="${user.home.ant}"/> | ||
|
||
<echo>Installing Ivy v${ivy.install.version}</echo> | ||
<get src="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" | ||
dest="${ivy.jar.file}" usetimestamp="true" /> | ||
|
||
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar.file}" /> | ||
|
||
<echo>Getting Build dependencies</echo> | ||
|
||
<ivy:settings file="${basedir}/build/ivysettings.xml"/> | ||
|
||
<deps-resolve-private conf="build" | ||
pathid="build.ivy.classpath" | ||
pattern="${user.home.ant}/[artifact].[ext]" transitive="false"/> | ||
</target> | ||
|
||
<target name="deps:umple" description="--> retrieve latest umple version."> | ||
<!-- this isn't actually Ivy, but its the smartest place to do this; eventually we'll use Ivy :) --> | ||
<echo>Fetching umple-${umple.version}</echo> | ||
|
||
<echo level="warning">WARNING: This is merely wget-ing http://try.umple.org/scripts/umple.jar</echo> | ||
<mkdir dir="${umple.deps.dir}" /> | ||
<get src="http://try.umple.org/scripts/umple.jar" | ||
dest="${umple.last.jar.file}" | ||
usetimestamp="true" /> | ||
|
||
<path id="umple.last.classpath"> | ||
<pathelement location="${umple.last.jar.file}"/> | ||
</path> | ||
|
||
<taskdef name="umplec" classname="cruise.umple.util.UmplecAntTask" classpathref="umple.last.classpath" /> | ||
</target> | ||
|
||
<target name="deps:manual" description="--> retrieve manual dependencies"> | ||
<echo>Fetching manual dependencies</echo> | ||
<mkdir dir="${umple.deps.manual.dir}" /> | ||
|
||
<echo>Fetching org.eclipse.cdt.core_5.5.0.jar</echo> | ||
|
||
<echo level="warning">WARNING: This is merely wget-ing https://umple.googlecode.com/svn/trunk/lib/umplificatorplugins/org.eclipse.cdt.core_5.5.0*.jar</echo> | ||
<mkdir dir="${umple.deps.manual.dir}" /> | ||
<get src="https://umple.googlecode.com/svn/trunk/lib/umplificatorplugins/org.eclipse.cdt.core_5.5.0.201309180223.jar" | ||
dest="${umple.deps.manual.dir}/" | ||
usetimestamp="true" /> | ||
|
||
<path id="umple.manual.classpath"> | ||
<fileset file="${umple.deps.manual.dir}/*.jar" /> | ||
</path> | ||
</target> | ||
|
||
</project> | ||
|
Oops, something went wrong.