2012-09-14 15:28:29 -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/maven-v4_0_0.xsd">
|
|
|
|
<parent>
|
|
|
|
<groupId>org.eclipse.jetty.setuid</groupId>
|
|
|
|
<artifactId>jetty-setuid-parent</artifactId>
|
|
|
|
<version>9.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2012-09-14 19:04:18 -04:00
|
|
|
<artifactId>libsetuid_linux</artifactId>
|
|
|
|
<name>Jetty :: SetUID Linux Native</name>
|
2012-09-14 15:28:29 -04:00
|
|
|
<packaging>so</packaging>
|
|
|
|
<properties>
|
2012-09-14 19:04:18 -04:00
|
|
|
<native-source-dir>target/native</native-source-dir>
|
|
|
|
<jetty-setuid-linkerStartOption>-shared -lc -ldl-shared -lc -ldl</jetty-setuid-linkerStartOption>
|
|
|
|
<jetty-setuid-linkerEndOption>target/libsetuid_linux.so</jetty-setuid-linkerEndOption>
|
2012-09-14 15:28:29 -04:00
|
|
|
</properties>
|
|
|
|
<build>
|
2012-09-14 19:04:18 -04:00
|
|
|
<finalName>libsetuid_linux</finalName>
|
2012-09-14 15:28:29 -04:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.setuid</groupId>
|
|
|
|
<artifactId>jetty-setuid-native</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${native-source-dir}/</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-jni-implementation</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<copy failonerror="false"
|
|
|
|
file="${native-source-dir}/org_eclipse_jetty_setuid_SetUID.c"
|
|
|
|
todir="target/generated" />
|
|
|
|
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2012-09-14 15:28:29 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<configuration>
|
|
|
|
<javahOS>mac</javahOS>
|
2012-09-14 19:04:18 -04:00
|
|
|
<jdkIncludePath>${java.home}/include</jdkIncludePath>
|
2012-09-14 15:28:29 -04:00
|
|
|
<compilerStartOptions>
|
|
|
|
<compilerStartOption>-fPIC -O</compilerStartOption>
|
|
|
|
</compilerStartOptions>
|
|
|
|
<sources>
|
|
|
|
<source>
|
|
|
|
<directory>target/generated</directory>
|
|
|
|
<fileNames>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
2012-09-14 15:28:29 -04:00
|
|
|
<fileName>org_eclipse_jetty_setuid_SetUID.c</fileName>
|
|
|
|
</fileNames>
|
|
|
|
</source>
|
|
|
|
</sources>
|
|
|
|
<linkerStartOptions>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
2012-09-14 15:28:29 -04:00
|
|
|
<linkerStartOption>${jetty-setuid-linkerStartOption}</linkerStartOption>
|
|
|
|
</linkerStartOptions>
|
|
|
|
<linkerEndOptions>
|
|
|
|
<linkerEndOptions>-o
|
2012-09-14 19:04:18 -04:00
|
|
|
${project.build.directory}/libsetuid.so</linkerEndOptions>
|
2012-09-14 15:28:29 -04:00
|
|
|
</linkerEndOptions>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>javah</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<configuration>
|
|
|
|
<classNames>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
2012-09-14 15:28:29 -04:00
|
|
|
<className>org.eclipse.jetty.setuid.SetUID</className>
|
|
|
|
</classNames>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
2012-09-14 15:28:29 -04:00
|
|
|
<outputDirectory>target/generated</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>javah</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
2012-09-14 15:28:29 -04:00
|
|
|
<execution>
|
|
|
|
<id>compile</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2012-09-14 19:04:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-14 15:28:29 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<dependencies>
|
2012-09-20 14:42:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
|
|
<artifactId>jetty-test-helper</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2012-09-14 15:28:29 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty.setuid</groupId>
|
|
|
|
<artifactId>jetty-setuid-java</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2012-09-13 18:32:51 -04:00
|
|
|
|
|
|
|
</project>
|