[ 
http://jira.codehaus.org/browse/MERCURY-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159016#action_159016
 ] 

Oleg Gusakov edited comment on MERCURY-65 at 12/22/08 7:32 PM:
---------------------------------------------------------------

Proposal #2 seem to be the most convenient. On one hand it naturally blends 
with Ant path, on the other hand - it provides a container for either nested 
<dependency> elements or can have an attribute pom="/path/to/pom"

As <dependencies/> has a different sematics in maven-ant, will have to use <dep 
/> for now

All 4 syntax samples will works:

{code:xml}
<javac src=...>
  <classpath>
    <dep pom="my-pom.xml"/>
  </classpath>
</javac>
{code}

and 

{code:xml}
<javac src=...>
  <classpath>
    <dep>
      <dependency pom="my-pom.xml"/>
      <dependency name="asm:asm:[3.0,)"/>
    </dep>
  </classpath>
</javac>
{code}

and 

{code:xml}
<dep pathid="my-path">
  <dependency pom="my-pom.xml"/>
  <dependency name="asm:asm:[3.0,)"/>
</dep>

<javac classpathref="my-path" ...  />
{code}

and 

{code:xml}
  <classpath id="my-path">
    <dep>
      <dependency pom="my-pom.xml"/>
      <dependency name="asm:asm:[3.0,)"/>
    </dep>
  </classpath>

<javac classpathref="my-path" ...  />
{code}



      was (Author: olle):
    Proposal #2 seem to be the most convenient. On one hand it naturally blends 
with Ant path, on the other hand - it provides a container for either nested 
<dependency> elements or can have an attribute pom="/path/to/pom"

As <dependencies/> has a different sematics in maven-ant, will have to use <dep 
/> for now

All 3 syntax samples will works:

{code:xml}
<javac src=...>
  <classpath>
    <dep pom="my-pom.xml"/>
  </classpath>
</javac>
{code}

and 

{code:xml}
<javac src=...>
  <classpath>
    <dep>
      <dependency pom="my-pom.xml"/>
      <dependency name="asm:asm:[3.0,)"/>
    </dep>
  </classpath>
</javac>
{code}

and 

{code:xml}
<dep pathid="my-path">
  <dependency pom="my-pom.xml"/>
  <dependency name="asm:asm:[3.0,)"/>
</dep>

<javac classpathref="my-path" ...  />
{code}


  
> Implement "old" maven-ant syntax 
> ---------------------------------
>
>                 Key: MERCURY-65
>                 URL: http://jira.codehaus.org/browse/MERCURY-65
>             Project: Mercury
>          Issue Type: Improvement
>          Components: Ant tasks
>            Reporter: Oleg Gusakov
>            Assignee: Oleg Gusakov
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> * As there are a lot of users that expect some kind of "investment protection"
> * simplify to allow "3 line" solutions for common tasks
> * introduce defaults - default repository, default dependency set
> * merge mercury: deps and mercury:resolve into one dependencies task 
> * show how to inline mercury classpath in the build.xml instead of ~/.ant/lib
> * expose "transitive" option from "resolve" task - for non-transitive reading 
> from repos

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to