I have tired different configurations as follows:
<configurations>
<conf name="inhouse-project1.jar" description="lists all
tcs dependency jars"/>
<conf name="inhouse-project2.jar" description="lists all
tcs dependency jars"/>
<conf name="third-party" description="lists all tcs_common
jars"/>
<configurations/>
<dependency org="webprojects" name="module1" rev="LATEST"
conf="inhouse-project1->default"/>
<dependency org="webprojects" name="module2" rev="LATEST"
conf="inhouse-project1->default"/>
<dependency org="apache" name="apache" rev="LATEST"
conf="third-party->default"/>
now my project library folder structure is:
.libs
!
!_inhouse-project1
! !_module1.jar
!_inhouse-project2
! !_module2.jar
!_third-party
!_apache.jar
but i am looking for :
.libs
!_project
! !
! !_inhouse-project1
! ! !_module1.jar
! !_inhouse-project2
! !_module2.jar
!_third-party
!_apache.jar
Please share your views.
--Kumar
topher1120 wrote:
>
> Hi Kumar,
> To me, it depends on if you are talking about a structure in your build,
> or
> in the ivy cache. If in the ivy cache, I'm not sure it's possible. If
> you
> want that structure in your build, I think it's possible using different
> configurations and the <ivy:retrieve> Ant task. In my ivy.xml, I have a
> few
> different configurations. For example, I have one for compiling the
> production code (compile), and one for what I need for unit tests (test).
> Then at different points in my Ant script, I use <ivy:retrieve> to
> retrieve
> a specific configuration into a specific directory.
>
> My compile retrieve call looks like:
> <ivy:retrieve
> pattern="${build.lib}/[artifact]-[revision](-[classifier]).[ext]"
> sync="true" conf="compile" />
>
> My test retrieve call looks like:
> <ivy:retrieve
> pattern="${build.unittest.lib}/[artifact]-[revision](-[classifier]).[ext]"
> sync="true" conf="test" />
>
> Hope this helps.
>
> Thanks,
> topher
>
>
> On Wed, Aug 12, 2009 at 8:03 AM, malepati <[email protected]> wrote:
>
>>
>> Hello Every one,
>>
>> I have a question:
>> I want to create a custom library folder structure, is this possible thru
>> ivy.xml ?
>>
>> Example:
>> .libs
>> !
>> !__Folder1
>> ! !
>> ! !__Folder1.a
>> ! !__Folder1.b
>> ! !
>> ! !_Folder1.b.i
>> !
>> !__Folder2
>> !
>> !__Folder2.a
>> !__Folder2.b
>> !
>> !_Folder2.b.i
>>
>> Is this possible with ivy?
>> because when I am trying to call one library i had to put all <includes>
>> and
>> <excludes>.
>> If i can create such kind of folder structure its easy for me to call a
>> particular folder when its necessary.
>> Please share your ideas.
>>
>> --Kumar.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Design-Library-Folder-Structure-tp24937269p24937269.html
>> Sent from the ivy-user mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Design-Library-Folder-Structure-tp24937269p24942439.html
Sent from the ivy-user mailing list archive at Nabble.com.