Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The path less travelled.....

 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the case of the following path assignments, why is the second example, (aka the relative path) preferential to the first example, (aka the absolute path?) Oh, wait, because if this were being deployed on another system whose deploy.dir variable was set to a directory other than /orion/applications, the absolute path wouldn't work? I think I just figured something out....


<fileset dir="/orion/application-
deployments/default/defaultWebApp/persistence"
includes="*.java,*.jspCache"/>

<fileset dir="${deploy.dir}/../application-
deployments/default/defaultWebApp/persistence"
includes="*.java,*.jspCache"/>
[ March 21, 2006: Message edited by: Carol Murphy ]
 
Pauline McNamara
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<pre>
< fileset dir="/orion/application-<br /> deployments/default/defaultWebApp/persistence"<br /> includes="*.java,*.jspCache" />

< fileset dir="${deploy.dir}/../application- <br /> deployments/default/defaultWebApp/persistence"<br /> includes="*.java,*.jspCache" />
</pre>



Those paths were a little shy so I tried to drag 'em out into the open...
...there they are! (a couple pre tags and some spaces did the trick)
[ March 21, 2006: Message edited by: Pauline McNamara ]
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doh! Forgetting to change those pesky less-than symbols to their html equivalents is my favorite recurring mistake these days!
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember to put the semicolon after the &lt
If you type &lt; you should see <
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Carol Murphy:
Oh, wait, because if this were being deployed on another system whose deploy.dir variable was set to a directory other than /orion/applications, the absolute path wouldn't work? I think I just figured something out....


Yes, it just makes it slightly more flexible. Perhaps someone installed orion under orion2 instead of orion. Yet the same relative path would work for both.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic