Hello,

I'm just testing Ivy, and I encountered a first problem.

My corporate "repository" is shared through a network directory.

So, I understand I have to customize Ivy settings to handle this.

My problem is the "ivy.shared.default.root" is dynamic... It looks like:
//builds/5_greatest/win64_x64/bin

"5" is the 'greatest' version : that means we must take dependencies from this 
subdirectory (maybe "6" exists, but it is not 'greatest'). Only one directory 
is marked as 'greatest' in the "builds" directory. If there is no "greatest", I 
have to choose the higher version number.

"win64_x64" is a 'platform' parameter: I need to provide it to the Ivy script...

How to solve these issues?

Thanks!

Regards,
Anthony



My 'ivysettings.xml':
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivysettings>
  <settings defaultResolver="default"/>
  <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
  <include url="./ivysettings-shared.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
</ivysettings>

My 'ivysettings-shared.xml':
<ivysettings>
  <!-- 
\\build-drops-lv\dropzone\Aurora\Aurora_dev_WebI\219\win64_x64\release\bin\RepoAccess\java
 -->
  <property name="ivy.shared.default.root" 
value="//build-drops/5_greatest/win64_x64/release/bin" override="false"/>
  <property name="ivy.shared.default.ivy.pattern" 
value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" 
override="false"/>
  <property name="ivy.shared.default.artifact.pattern" 
value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" 
override="false"/>
  <resolvers>
    <filesystem name="shared">
      <ivy 
pattern="${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}" />
      <artifact 
pattern="${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}" />
    </filesystem>
  </resolvers>
</ivysettings>



Reply via email to