Archived

This forum has been archived. Please start a new discussion on GitHub.

Defining basedir

We would like to start icepackadmin with an application file that resides in a different directory than the descriptors it contains. We would like to use the same application XML file with different sets of descriptors installed in different directories without having to explictly change the basedir attribute of an application or node element each time. We would like to set basedir dynamically as say, through an argument to icepackadmin, rather than having to change our application XML file.

Is there a way to define basedir dynamically?

We tried using icepackadmin -Dbasedir=/foo/bar/ with basedir=${basedir} in our app descriptor, but gather this is a misuse of that argument.

Thanks again,

Brian

Comments

  • benoit
    benoit Rennes, France
    Hi Brian,

    It's not possible to set basedir outside the descriptor. Note that the basedir attribute doesn't exist anymore with IcePack 1.5.x (and it's also possible to define variables with the IcePack admin tool). Perhaps you should consider upgrading to the latest version!

    Benoit.
  • Thanks for the reply, Benoit.

    So with 1.5 we will be able to set variables using icepackadmin that can be picked up in descriptors using the ${} variable substitution? If I misread you, how would we be able to achieve the goal outlined in my previous email.

    Thanks,

    Brian
  • benoit
    benoit Rennes, France
    That's correct, you can setup variables with the icepackadmin tool (see section 25.8.2 of the Ice 1.5.1 manual).

    Benoit.