jvanzyl     2002/07/03 14:49:02

  Modified:    src/plugins/dependency plugin.jelly
  Log:
  Added a goal to analyse the sources.
  
  Revision  Changes    Path
  1.5       +41 -1     jakarta-turbine-maven/src/plugins/dependency/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins/dependency/plugin.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugin.jelly      3 Jul 2002 19:00:45 -0000       1.4
  +++ plugin.jelly      3 Jul 2002 21:49:02 -0000       1.5
  @@ -45,6 +45,46 @@
     </goal>
   
     <!-- ================================================================== -->
  +  <!-- R E S O L V E  P R O J E C T S  F R O M  S O U R C E               -->
  +  <!-- ================================================================== -->
  +
  +  <goal
  +    name="resolveProjects">
  +
  +    <define:taglib uri="depTagLib">
  +      <define:jellybean 
  +        name="resolveProjects"
  +        className="org.apache.maven.dependency.ProjectResolver"
  +        method="execute"
  +      />
  +    </define:taglib>
  +    
  +    <!-- 
  +    
  +    For each project directory we want to look at the Java sources
  +    and determine the project references.
  +    
  +    -->
  +    
  +    <maven:directoryList directory="${maven.tmpDir}"/>
  +    
  +    ${directoryList}
  +    
  +    <j:forEach var="file" items="${directoryList.iterator()}">
  +      
  +      ${file}
  +      
  +      <dep:resolveProjects
  +        base="${file}"
  +        mapFile="${maven.home}/package-project.map"
  +        packageExcludes="java,javax">
  +      </dep:resolveProjects>
  +
  +    </j:forEach>
  +
  +  </goal>
  +
  +  <!-- ================================================================== -->
     <!-- P A C K A G E  T O  P R O J E C T  M A P                           -->
     <!-- ================================================================== -->
     <!-- Create the map used to resolve package references into             -->
  @@ -64,7 +104,7 @@
       </define:taglib>
       
       <echo>Generating package to project id map ...</echo>
  -    <echo>descriptorDir: ${descriptorDir}</echo>
  +    <echo>descriptorDir: ${maven.descriptorDir}</echo>
       
       <dep:packageProjectMap
         descriptorDir="${maven.descriptorDir}"
  
  
  

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

Reply via email to