Skip to content
Snippets Groups Projects
Select Git revision
  • 586eb8c2b5f70fc3256c88f4eda96af7d457ce4c
  • master default
  • labcomm2014_tc31
  • labcomm2014
  • js
  • java_dyn_msg_dec
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
14 results

labcomm-compiler-plugin

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Anders Blomdell / LabComm
    219 commits behind, 4 commits ahead of the upstream repository.
    Name Last commit Last update
    ..
    src
    .gitignore
    pom.xml
    readme.md

    labcomm-compiler-plugin

    Compiles labcomm files during the maven build lifecycle.

    Example

    To use the plugin to compile the file my_types.lc put the following in your maven build file (pom.xml). You can then use the types as import labcomm_gen.sample where sample is the name of the sample(s) in the my_types.lc.

    <project>
    	<!-- ...  -->
    	<dependencies>
    		<!-- ...  -->
    		<!-- labcomm lib -->
    		<dependency>
    			<groupId>se.lth.control</groupId>
    			<artifactId>labcomm</artifactId>
    			<version>2014.3.0-SNAPSHOT</version>
    		</dependency>
    	</dependencies>
    
    	<build>
    		<plugins>
    			<!-- ...  -->
    			<plugin>
    				<!-- labcomm compiler -->
    				<groupId>se.lth.control</groupId>
    				<artifactId>labcomm-compiler-plugin</artifactId>
    				<version>2014.3.0-SNAPSHOT</version>
    				<configuration>
    					<lc>path/to/my_types.lc</lc>
    				</configuration>
    				<executions>
    					<execution>
    						<phase>generate-sources</phase>
    						<goals>
    							<goal>genjava</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    		<build>
    	<plugins>
    
    	<repositories>
    		<repository>
    			<!-- source of dep/plugin -->
    			<id>CSLTH</id>
    			<name>CS LTH maven repo</name>
    			<url>http://maven.cs.lth.se/content/repositories/public/</url>
    			<releases>
    				<enabled>true</enabled>
    			</releases>
    			<snapshots>
    				<enabled>true</enabled>
    				<updatePolicy>always</updatePolicy>
    			</snapshots>
    		</repository>
    	</repositories>
    
    </project>