It's not a secret anymore!*
The moose likes Ant, Maven and Other Build Tools and the fly likes dots in path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "dots in path " Watch "dots in path " New topic

dots in path

J J Singh

Joined: Mar 20, 2010
Posts: 12

I want to know from where this is being read

e.g 1 <property file="${basedir}/../Interface/"/>

e.g 2

This make directory task is telling to make something like classes folder , but where?

<mkdir dir="${basedir}/../classes"/>

how to read those two dots?

Thanks in advance
J J Singh

Joined: Mar 20, 2010
Posts: 12
Okay i found it

Two dots will take me to parent directory of place where current location is

<mkdir dir="${basedir}/../classes"/>

e.g if basedir is .
then .. will take one level up

and then create directory named classes inside that directory.

It is sorta covered in the JavaRanch Style Guide.
subject: dots in path
Similar Threads
Eclipse Doubt
Ant Build...What does the values in basedir="" mean?
[Ant] how to create a jar (not runnable) with other dependencies?
Characters replacement
unable to create War using Ant