• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The path less travelled.....

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic