protoj.core
Class IvyFeature

java.lang.Object
  extended by protoj.core.IvyFeature

public final class IvyFeature
extends java.lang.Object

All ProtoJ ivy functionality.

Author:
Ashley Williams

Constructor Summary
IvyFeature(CoreProject core)
           
 
Method Summary
 void findrevision(java.lang.String organization, java.lang.String module, java.lang.String branch, java.lang.String revision, java.lang.String settingsRef)
          Pass-thru method to the ivy findrevision ant task.
 java.lang.String getBranch()
           
 java.io.File getIvyFile()
          The ivy file used to define project dependencies.
 java.lang.String getMatcher()
           
 java.lang.String getModule()
           
 java.lang.String getOrganization()
           
 java.io.File getPomFile()
          The pom file that gets generated from the ivy file after the call to makepom(String).
 java.lang.String getRevision()
           
 java.lang.String getRevisionResult()
          Stores the result of the most recent invocation of findrevision(String, String, String, String, String).
 java.lang.String getSettingsRef()
           
 java.lang.String getValue()
           
 void listmodules(java.lang.String organization, java.lang.String module, java.lang.String branch, java.lang.String revision, java.lang.String matcher, java.lang.String value, java.lang.String settingsRef)
          Pass-thru method to the ivy listmodules ant task.
 void makepom(java.lang.String settingsRef)
          Decorates the ivy makepom ant task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IvyFeature

public IvyFeature(CoreProject core)
Method Detail

listmodules

public void listmodules(java.lang.String organization,
                        java.lang.String module,
                        java.lang.String branch,
                        java.lang.String revision,
                        java.lang.String matcher,
                        java.lang.String value,
                        java.lang.String settingsRef)
Pass-thru method to the ivy listmodules ant task. Consult the documentation on the ivy website. TODO I haven't been able to get ivy.listmodules to produce any results so can't continue with this just yet.

Parameters:
organization -
module -
branch -
revision -
matcher -
value -
settingsRef -

findrevision

public void findrevision(java.lang.String organization,
                         java.lang.String module,
                         java.lang.String branch,
                         java.lang.String revision,
                         java.lang.String settingsRef)
Pass-thru method to the ivy findrevision ant task. Consult the documentation on the ivy website.

Parameters:
organization -
module -
branch -
revision -
settingsRef -

makepom

public void makepom(java.lang.String settingsRef)
Decorates the ivy makepom ant task. The ivy.xml file under the conf directory is used as the source and a pom.xml file is created in the target directory. Ivy dependencies will map to either the maven compile scope or option scope depending on whether or not they are associated with an ivy config element called "compile".

Parameters:
settingsRef -

getOrganization

public java.lang.String getOrganization()

getModule

public java.lang.String getModule()

getRevision

public java.lang.String getRevision()

getBranch

public java.lang.String getBranch()

getSettingsRef

public java.lang.String getSettingsRef()

getMatcher

public java.lang.String getMatcher()

getValue

public java.lang.String getValue()

getRevisionResult

public java.lang.String getRevisionResult()
Stores the result of the most recent invocation of findrevision(String, String, String, String, String). May be null if the search criteria resulted in no matching revision.

Returns:

getIvyFile

public java.io.File getIvyFile()
The ivy file used to define project dependencies.

Returns:

getPomFile

public java.io.File getPomFile()
The pom file that gets generated from the ivy file after the call to makepom(String).

Returns: