dion        2003/03/18 12:17:52

  Modified:    src/plugins-build/repository plugin.jelly
  Log:
  Remove failed attempts at checking a file exists remotely.
  Fix groupId not being passed to the pom-template
  
  Revision  Changes    Path
  1.18      +1 -44     maven/src/plugins-build/repository/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/repository/plugin.jelly,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- plugin.jelly      18 Mar 2003 06:39:59 -0000      1.17
  +++ plugin.jelly      18 Mar 2003 20:17:52 -0000      1.18
  @@ -81,32 +81,6 @@
       </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
        ! @param var the variable to place the filename into
  @@ -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)"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to