yes, i've tried changing it to use the runtime scope and it looks like
everything in the runtime scope is copied to the directory.
Brett Porter wrote:
>
> I don't believe so, since it assumes it to be provided.
>
> If you use "compile" instead of "provided", does it work? It is not
> expected to be transitive, however.
>
> - Brett
>
> 2008/9/25 William Vuong <[EMAIL PROTECTED]>:
>> I have something like this in my ant file and the maven ant tasks 2.0.9
>> and
>> ant 1.7 that loads a pom.xml file and creates a bunch of filesets:
>>
>>
>>
>> <target name="wtf">
>>
>> <!-- declare pom.xml -->
>>
>> <artifact:pom id="maven.project" file="pom.xml" />
>>
>>
>>
>> <!-- provided.fileset -->
>>
>> <artifact:dependencies pomRefId="maven.project"
>> pathId="provided.classpath" filesetId="provided.fileset"
>> verbose="${maven.verbosity}" useScope="provided" />
>>
>>
>>
>> <!-- make a copy of it -->
>>
>> <mkdir dir="provided-scope"/>
>>
>> <copy todir="provided-scope" flatten="true">
>>
>> <fileset refid="provided.fileset"/>
>>
>> </copy>
>>
>> </target>
>>
>>
>>
>> And my pom file does have several dependencies with the provided scope:
>>
>>
>>
>> <dependency>
>>
>> <groupId>com.oracle</groupId>
>>
>> <artifactId>ojdbc14</artifactId>
>>
>> <version>9.0.2.0.0</version>
>>
>> <scope>provided</scope>
>>
>> </dependency>
>>
>>
>>
>> So when I execute "ant wtf", none of the dependencies in the provided
>> scope
>> gets copied into that directory. The provided scope is supported by the
>> maven ant tasks, right? Or am I doing something wrong?
>>
>>
>>
>> Thanks.
>>
>>
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/maven-ant-tasks-and-the-provided-scope-tp19662878p19694597.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]