Преглед изворни кода

Zip example project in build and add to ui.examples (YAKHMI-623)

benjamin.schwertfeger@gmail.com пре 13 година
родитељ
комит
99e9923c10

+ 1 - 0
examples/org.yakindu.sct.example.trafficlight/assembly.xml

@@ -14,6 +14,7 @@
         <exclude>assembly.xml</exclude>
         <exclude>target/**</exclude>
         <exclude>bin/**</exclude>
+        <exclude>**/.svn/**</exclude>
         <exclude>target</exclude>
       </excludes>
     </fileSet>

+ 1 - 3
examples/org.yakindu.sct.example.trafficlight/pom.xml

@@ -6,7 +6,7 @@
 	<!--parent> <groupId>org.yakindu.sct</groupId> <artifactId>org.yakindu.sct.releng</artifactId> 
 		<version>1.0.0-SNAPSHOT</version> <relativePath>../org.yakindu.sct.releng/pom.xml</relativePath> 
 		</parent -->
-	<groupId>org.yakindu.sct</groupId>
+	<groupId>org.yakindu.sct.examples</groupId>
 	<artifactId>org.yakindu.sct.example.trafficlight</artifactId>
 	<version>1.0.0-SNAPSHOT</version>
 	<packaging>pom</packaging>
@@ -21,8 +21,6 @@
 				<artifactId>maven-assembly-plugin</artifactId>
 				<version>2.3</version>
 				<configuration>
-					<finalName>content</finalName>
-					<appendAssemblyId>false</appendAssemblyId>
 					<descriptors>
 						<descriptor>assembly.xml</descriptor>
 					</descriptors>

+ 28 - 0
plugins/org.yakindu.sct.ui.examples/pom.xml

@@ -14,6 +14,34 @@
 	<packaging>eclipse-plugin</packaging>
 	<build>
 		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<version>2.4</version>
+				<executions>
+					<execution>
+						<id>copy</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>copy</goal>
+						</goals>
+						<configuration>
+							<artifactItems>
+								<artifactItem>
+									<groupId>org.yakindu.sct.examples</groupId>
+									<artifactId>org.yakindu.sct.example.trafficlight</artifactId>
+									<version>${project.version}</version>
+									<type>zip</type>
+									<classifier>content</classifier>
+									<destFileName>org.yakindu.sct.example.trafficlight.zip</destFileName>
+								</artifactItem>
+							</artifactItems>
+							<overWriteIfNewer>true</overWriteIfNewer>
+							<outputDirectory>${basedir}/contents</outputDirectory>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
 			<plugin>
 				<groupId>org.eclipse.tycho</groupId>
 				<artifactId>tycho-source-plugin</artifactId>

+ 1 - 1
releng/org.yakindu.sct.releng/hudson.README

@@ -56,7 +56,7 @@ Build:
 
 + Invoke Maven 3
 	Goals
-		verify -PCI,Indigo.target -s ../build/org.yakindu.sct.releng/settings.xml
+		verify -PCI -s ../build/org.yakindu.sct.releng/settings.xml
 	POM File
 		../build/org.yakindu.sct.releng/pom.xml
 	Profiles

+ 35 - 17
releng/org.yakindu.sct.releng/pom.xml

@@ -17,6 +17,11 @@
 		<p2.base.repository>file:../org.yakindu.base.repository/target/repository</p2.base.repository>
 	</properties>
 	<build>
+		<!--resources>
+			<resource>
+				<directory> [your folder here] </directory>
+			</resource>
+		</resources-->
 		<plugins>
 			<plugin>
 				<!-- enable tycho build extension -->
@@ -110,6 +115,18 @@
 				</dependencies>
 			</plugin>
 		</plugins>
+		<pluginManagement>
+			<plugins>
+				<plugin>
+					<groupId>org.apache.maven.plugins</groupId>
+					<artifactId>maven-resources-plugin</artifactId>
+					<version>2.5</version>
+					<configuration>
+						<encoding>UTF-8</encoding>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
 	</build>
 
 	<profiles>
@@ -120,15 +137,15 @@
 			</activation>
 			<repositories>
 				<repository>
-			      <id>target</id>
-			      <layout>p2</layout>
-			      <url>${p2.target.repository}</url>
-			    </repository>
+					<id>target</id>
+					<layout>p2</layout>
+					<url>${p2.target.repository}</url>
+				</repository>
 				<repository>
-			      <id>base</id>
-			      <layout>p2</layout>
-			      <url>${p2.base.repository}</url>
-			    </repository>
+					<id>base</id>
+					<layout>p2</layout>
+					<url>${p2.base.repository}</url>
+				</repository>
 			</repositories>
 			<build>
 				<plugins>
@@ -173,15 +190,15 @@
 			<id>Indigo.target</id>
 			<repositories>
 				<repository>
-			      <id>indigo</id>
-			      <layout>p2</layout>
-			      <url>http://download.eclipse.org/releases/indigo</url>
-			    </repository>
+					<id>indigo</id>
+					<layout>p2</layout>
+					<url>http://download.eclipse.org/releases/indigo</url>
+				</repository>
 				<repository>
-			      <id>eclipse37</id>
-			      <layout>p2</layout>
-			      <url>http://download.eclipse.org/eclipse/updates/3.7</url>
-			    </repository>
+					<id>eclipse37</id>
+					<layout>p2</layout>
+					<url>http://download.eclipse.org/eclipse/updates/3.7</url>
+				</repository>
 			</repositories>
 			<build>
 				<plugins>
@@ -237,8 +254,9 @@
 	</profiles>
 
 	<modules>
-	<!--	<module>../org.yakindu.sct.statechart.target</module> -->
+		<!-- <module>../org.yakindu.sct.statechart.target</module> -->
 		<module>../org.yakindu.sct.doc.user</module>
+		<module>../org.yakindu.sct.example.trafficlight</module>
 		<module>../org.yakindu.sct.generator.core</module>
 		<module>../org.yakindu.sct.generator.genmodel</module>
 		<module>../org.yakindu.sct.generator.genmodel.test</module>