Remove failed attempts at checking a file exists remotely.
Fix groupId not being passed to the pom-template git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e878a32bd
commit
3d75a337bb
@ -80,32 +80,6 @@
|
||||
</repository:exec>
|
||||
</define:tag>
|
||||
|
||||
<!--
|
||||
! test if a file exists in the remote repo
|
||||
! @param name the file to check
|
||||
! @param var the variable to set to true or false
|
||||
!-->
|
||||
<define:tag name="fileExists">
|
||||
<exec dir="." executable="${maven.ssh.executable}" resultproperty="result">
|
||||
<arg line='-l ${maven.username} ${maven.repo.central} "test -f ${name}"'/>
|
||||
</exec>
|
||||
<ant:echo>Result from ssh is '${result}'</ant:echo>
|
||||
<j:set var="${var}" scope="parent" value="${result == '0'}"/>
|
||||
</define:tag>
|
||||
|
||||
<!--
|
||||
! test if a directory exists in the remote repo
|
||||
! @param name the directory to check
|
||||
! @param var the variable to set to true or false
|
||||
!-->
|
||||
<define:tag name="directoryExists">
|
||||
<exec dir="." executable="${maven.ssh.executable}" resultproperty="result">
|
||||
<arg line='-l ${maven.username} ${maven.repo.central} "test -d ${name}"'/>
|
||||
</exec>
|
||||
<ant:echo>Result from ssh is '${result}'</ant:echo>
|
||||
<j:set var="${var}" scope="parent" value="${result == '0'}"/>
|
||||
</define:tag>
|
||||
|
||||
<!--
|
||||
! place the file name portion of a url into a variable
|
||||
! @param url the URL to process
|
||||
@ -294,30 +268,13 @@
|
||||
</x:forEach>
|
||||
</goal>
|
||||
|
||||
<goal name="repository:audit-copy-poms"
|
||||
description="">
|
||||
|
||||
<repository:directoryExists var="central"
|
||||
name="${maven.repo.central.directory}" />
|
||||
<ant:echo>central = '${central}'</ant:echo>
|
||||
<repository:fileExists var="ant151"
|
||||
name="${maven.repo.central.directory}/ant/jars/ant-1.5.1.jar" />
|
||||
<ant:echo>ant151 = '${ant151}'</ant:echo>
|
||||
<repository:directoryExists var="badcentral"
|
||||
name="${maven.repo.central.directory}/grunk" />
|
||||
<ant:echo>badcentral = '${badcentral}'</ant:echo>
|
||||
<repository:fileExists var="ant171"
|
||||
name="${maven.repo.central.directory}/ant/jars/ant-1.7.1.jar" />
|
||||
<ant:echo>ant171 = '${ant171}'</ant:echo>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="repository:audit-generate-poms"
|
||||
description="generate a pom for all the groupId's in the audit file">
|
||||
|
||||
<repository:parseAudit var="audit"/>
|
||||
<x:forEach var="project" select="$audit/licenses/project">
|
||||
<j:set var="group"><x:expr select="$project/groupId"/></j:set>
|
||||
<j:set var="groupId" value="${group}"/>
|
||||
<ant:echo>Creating pom for ${group}</ant:echo>
|
||||
<x:set var="url" select="string($project/url)"/>
|
||||
<x:set var="comments" select="string($project/comments)"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user