Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a profile to set the scala versions

The profile runs a tool which git the versions from the properties files
unzipped during the toolchain build.
Set a value to SET_VERSION to trigger the extra step.
  • Loading branch information...
commit e986f0cbd641ff83eafe4aee5425950e04ab3d6a 1 parent 4d78173
@skyluc authored
Showing with 58 additions and 14 deletions.
  1. +15 −14 build-all.sh
  2. +43 −0 pom.xml
View
29 build-all.sh
@@ -2,12 +2,11 @@
# run in sequences the different maven calls needed to fully build Scala IDE from scratch
-
#ROOT_DIR=$(dirname $(readlink -f $0))
# not as good as the readlink version, but it is not working on os X
ROOT_DIR=$(dirname $0)
-
-RUNNING_DIR=${PWD}
+cd ${ROOT_DIR}
+ROOT_DIR=${PWD}
if [ -z "$*" ]
then
@@ -18,8 +17,8 @@ fi
echo "Running with: mvn ${ARGS}"
-# the parent project
-cd ${ROOT_DIR}
+# the toolchain
+cd ${ROOT_DIR}/org.scala-ide.build-toolchain
mvn ${ARGS}
RES=$?
@@ -28,19 +27,21 @@ then
exit ${RES}
fi
-# the toolchain
-cd ${RUNNING_DIR}
-cd ${ROOT_DIR}/org.scala-ide.build-toolchain
-mvn ${ARGS}
-
-RES=$?
-if [ ${RES} != 0 ]
+# set the versions if required
+cd ${ROOT_DIR}
+if [ -n "${SET_VERSIONS}" ]
then
- exit ${RES}
+ mvn -Pset-versions exec:java
+ RES=$?
+ if [ ${RES} != 0 ]
+ then
+ exit ${RES}
+ fi
+else
+ echo "Not running UpdateScalaIDEManifests."
fi
# the plugins
-cd ${RUNNING_DIR}
cd ${ROOT_DIR}/org.scala-ide.sdt.build
mvn ${ARGS}
View
43 pom.xml
@@ -146,6 +146,49 @@
</pluginManagement>
</build>
</profile>
+
+ <profile>
+ <!-- pull the data needed to add the version numbers to the manifests -->
+ <id>set-versions</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.scala-ide</groupId>
+ <artifactId>build-tools_2.9.2</artifactId>
+ <version>0.1.0</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>copy.reflect</id>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <classpathScope>compile</classpathScope>
+ <mainClass>org.scalaide.buildtools.UpdateScalaIDEManifests</mainClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <!-- extra repository containing the build package -->
+ <id>typesafe-ide</id>
+ <name>Typesafe IDE repository</name>
+ <url>http://repo.typesafe.com/typesafe/ide-2.9</url>
+ <snapshots><enabled>true</enabled></snapshots>
+ </repository>
+ </repositories>
+ </profile>
+
</profiles>
<repositories>
Please sign in to comment.
Something went wrong with that request. Please try again.