Browse Source

Activated xtext generator by mwe-workflow

benjamin.schwertfeger@googlemail.com 12 years ago
parent
commit
b5c8045836

+ 27 - 0
plugins/org.yakindu.sct.model.stext/log4j.properties

@@ -0,0 +1,27 @@
+# Log configuration for Xtext logging.
+# This log configuration will be used for the UI parts of Xtext.
+#
+# For your convenience: valid log levels are (from least to most significant):
+# TRACE, DEBUG, INFO, WARN, ERROR and FATAL
+# Log4J manual: http://logging.apache.org/log4j/1.2/manual.html
+# Xtext log configuration info: http://wiki.eclipse.org/Xtext_Project_Plan/Features/Logging
+
+# Root logger configuration. Don't change this.
+log4j.rootLogger=DEBUG, default
+
+# This appender will write to the stdout console
+log4j.appender.default=org.apache.log4j.ConsoleAppender
+log4j.appender.default.layout=org.apache.log4j.PatternLayout
+log4j.appender.default.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+
+# This appender will write to the Eclipse error log. It will ONLY log ERROR and FATAL messages.
+log4j.appender.eclipse=org.eclipse.xtext.logging.EclipseLogAppender
+log4j.appender.eclipse.layout=org.apache.log4j.PatternLayout
+log4j.appender.eclipse.layout.ConversionPattern=%c %x - %m%n
+
+# Configure your log categories below:
+log4j.logger.org.eclipse=WARN
+log4j.logger.org.eclipse.xtext=WARN
+log4j.logger.org.eclipse.xtext.ui.editor.outline=WARN
+log4j.logger.org.eclipse.xtext.ui.editor.contentassist.antlr.internal=WARN
+

+ 67 - 0
plugins/org.yakindu.sct.model.stext/pom.xml

@@ -64,6 +64,16 @@
 				<artifactId>maven-clean-plugin</artifactId>
 				<configuration>
 					<filesets>
+						<fileset>
+							<directory>src-gen</directory>
+							<includes>
+								<include>**</include>
+							</includes>
+							<excludes>
+								<exclude>.gitignore</exclude>
+								<exclude>.svn/</exclude>
+							</excludes>
+						</fileset>
 						<fileset>
 							<directory>xtend-gen</directory>
 							<includes>
@@ -74,9 +84,66 @@
 								<exclude>.svn/</exclude>
 							</excludes>
 						</fileset>
+						<fileset>
+							<directory>../${project.artifactId}.ui/src-gen</directory>
+							<includes>
+								<include>**</include>
+							</includes>
+							<excludes>
+								<exclude>.gitignore</exclude>
+								<exclude>.svn/</exclude>
+							</excludes>
+						</fileset>
+						<fileset>
+							<directory>../${project.artifactId}.tests/src-gen</directory>
+							<includes>
+								<include>**</include>
+							</includes>
+							<excludes>
+								<exclude>.gitignore</exclude>
+								<exclude>.svn/</exclude>
+							</excludes>
+						</fileset>
+						<fileset>
+							<directory>../${project.artifactId}.tests/xtend-gen</directory>
+							<includes>
+								<include>**</include>
+							</includes>
+							<excludes>
+								<exclude>.gitignore</exclude>
+								<exclude>.svn/</exclude>
+							</excludes>
+						</fileset>
 					</filesets>
 				</configuration>
 			</plugin>
+			<plugin>
+				<groupId>org.fornax.toolsupport</groupId>
+				<artifactId>fornax-oaw-m2-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>xtext</id>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>run-workflow</goal>
+						</goals>
+						<configuration>
+							<workflowEngine>mwe2</workflowEngine>
+							<workflowDescriptor>src/org/yakindu/sct/model/stext/GenerateExpressions.mwe2</workflowDescriptor>
+							<timestampFileName>xtext-generator.timestamp</timestampFileName>
+							<jvmSettings>
+								<fork>true</fork>
+								<jvmArgs>
+									<jvmArg>-Xms100m</jvmArg>
+									<jvmArg>-Xmx700m</jvmArg>
+									<jvmArg>-XX:MaxPermSize=128m</jvmArg>
+									<jvmArg>-Dlog4j.configuration=file:${basedir}/log4j.properties</jvmArg>
+								</jvmArgs>
+							</jvmSettings>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
 			<plugin>
 				<groupId>org.eclipse.xtend</groupId>
 				<artifactId>xtend-maven-plugin</artifactId>