提交 db8695be 编写于 作者: S Stephen Connolly 提交者: Kohsuke Kawaguchi

remove use of antrun from core (now have another plugin fix required (hpi))

上级 5827fa97
......@@ -510,6 +510,24 @@ THE SOFTWARE.
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>hudson/model/hudson-version.properties</exclude>
<exclude>jenkins/model/jenkins-version.properties</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>hudson/model/hudson-version.properties</include>
<include>jenkins/model/jenkins-version.properties</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
......@@ -613,43 +631,28 @@ THE SOFTWARE.
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
<artifactId>maven-antrun-extended-plugin</artifactId>
<!-- version specified in grandparent pom -->
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>winsw</id>
<phase>generate-resources</phase>
<configuration>
<tasks>
<tstamp>
<format property="now" pattern="MM/dd/yyyy HH:mm" unit="hour" />
</tstamp>
<property name="build.type" value="private" /> <!-- override for "rc" build -->
<pathconvert property="version.rc">
<path path="${project.version}" />
<chainedmapper><flattenmapper /><globmapper from="*-SNAPSHOT" to="*-RC" /></chainedmapper>
</pathconvert>
<condition property="build.version" value="${version.rc} (${now})">
<equals arg1="${build.type}" arg2="rc" />
</condition>
<property name="build.version" value="${project.version} (${build.type}-${now}-${user.name})" />
<!-- default to release version -->
<!-- put the version file -->
<echo message="The build id is: ${build.version}" />
<mkdir dir="target/classes/hudson/model" />
<echo file="target/classes/hudson/model/hudson-version.properties">version=${build.version}
</echo>
<mkdir dir="target/classes/jenkins/model" />
<echo file="target/classes/jenkins/model/jenkins-version.properties">version=${build.version}
</echo>
<!-- download winsw.exe -->
<mkdir dir="target/classes/windows-service" />
<resolveArtifact artifactId="winsw" tofile="target/classes/windows-service/jenkins.exe" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
<!-- we use copy as this is a dependency from outside the reactor -->
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.sun.winsw</groupId>
<artifactId>winsw</artifactId>
<version>1.10</version>
<classifier>bin</classifier>
<type>exe</type>
<outputDirectory>${project.build.outputDirectory}/windows-service</outputDirectory>
<destFileName>jenkins.exe</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
......@@ -700,10 +703,6 @@ THE SOFTWARE.
</profile>
<profile>
<id>release</id>
<properties>
<!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. -->
<build.version>${project.version}</build.version>
</properties>
<build>
<plugins>
<plugin><!-- execute apt:process for "Extension points" Wiki page generation -->
......
version=${build.version}
\ No newline at end of file
version=${build.version}
\ No newline at end of file
......@@ -377,7 +377,7 @@ THE SOFTWARE.
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<version>1.72</version>
<version>1.73-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册