2013-12-15 18:30:16 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2014-03-24 16:13:08 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<artifactId>edu.wpi.first.wpilib.plugins.cpp</artifactId>
|
|
|
|
|
<packaging>eclipse-plugin</packaging>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>edu.wpi.first.wpilib.plugins</groupId>
|
|
|
|
|
<artifactId>edu.wpi.first.wpilib.plugins</artifactId>
|
|
|
|
|
<version>0.1.0.qualifier</version>
|
|
|
|
|
<relativePath>..</relativePath>
|
|
|
|
|
</parent>
|
|
|
|
|
<properties>
|
|
|
|
|
<build-number>DEVELOPMENT</build-number>
|
|
|
|
|
<cpp-zip>${project.build.directory}/cpp-zip</cpp-zip>
|
|
|
|
|
</properties>
|
|
|
|
|
<build>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>.</directory>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>resources/configuration.properties</include>
|
|
|
|
|
</includes>
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
<version>2.6</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>copy-ant-resources-to-cpp-zip</id>
|
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<outputDirectory>${cpp-zip}</outputDirectory>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources/cpp-zip</directory>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
<version>2.8</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<!-- Fetch the dependencies needed to build the cpp.zip file. -->
|
|
|
|
|
<execution>
|
|
|
|
|
<id>fetch-cpp-zip-dependencies</id>
|
|
|
|
|
<phase>compile</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>copy</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<artifactItems>
|
|
|
|
|
<artifactItem>
|
|
|
|
|
<groupId>edu.wpi.first.wpilib.cmake</groupId>
|
|
|
|
|
<artifactId>cpp-root</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
<type>jar</type>
|
|
|
|
|
<destFileName>cpp-root.jar</destFileName>
|
|
|
|
|
</artifactItem>
|
|
|
|
|
</artifactItems>
|
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
|
<overWriteReleases>false</overWriteReleases>
|
|
|
|
|
<overWriteSnapshots>true</overWriteSnapshots>
|
|
|
|
|
<prependGroupId>true</prependGroupId>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
<version>1.7</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<!-- Set time stamp and version properties. -->
|
|
|
|
|
<execution>
|
|
|
|
|
<id>set-version-info</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<phase>process-sources</phase>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>
|
|
|
|
|
<tstamp>
|
|
|
|
|
<format property="timestamp" pattern="yyyy/MM/dd HH:mm:ss z"/>
|
|
|
|
|
</tstamp>
|
|
|
|
|
<tstamp>
|
|
|
|
|
<format property="version-info" pattern="yyyy.MM"/>
|
|
|
|
|
</tstamp>
|
|
|
|
|
<property name="version" value="${version-info}.${build-number}"/>
|
|
|
|
|
</target>
|
|
|
|
|
<exportAntProperties>true</exportAntProperties>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<!-- Unzip the include files for cpp.zip. -->
|
|
|
|
|
<execution>
|
|
|
|
|
<id>unzip-cpp-includes</id>
|
|
|
|
|
<phase>compile</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>
|
|
|
|
|
<unzip dest="${cpp-zip}">
|
|
|
|
|
<fileset dir="${project.build.directory}">
|
|
|
|
|
<include name="cpp-root.jar"/>
|
|
|
|
|
</fileset>
|
|
|
|
|
</unzip>
|
|
|
|
|
</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<!-- Generate zip file to unzip for the user. -->
|
|
|
|
|
<execution>
|
|
|
|
|
<id>generate-cpp-zip</id>
|
|
|
|
|
<phase>compile</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>
|
|
|
|
|
<zip destfile="${project.build.directory}/classes/resources/cpp.zip" basedir="${cpp-zip}" update="true"/>
|
|
|
|
|
</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>edu.wpi.first.wpilib.cmake</groupId>
|
|
|
|
|
<artifactId>cpp-root</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
<type>jar</type>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
2013-12-15 18:30:16 -05:00
|
|
|
</project>
|