Hi John,
thanks, new File did the job. anyway a bit confusing i think.

cheers,
René

John Murph schrieb:
the file() method on Project is defined to resolve paths relative to the "project directory" (which is the directory in which the build file exists). For what you want, use

addArtifactPattern(new File('../ThirdParty').absolutePath ...


On Wed, Jan 27, 2010 at 4:08 PM, RenŽé Gröschke <[email protected] <mailto:[email protected]>> wrote:

    hi there,
    I'm running my builds by calling gradle in my project directory
    and use the -b flag to point to my build file which is stored at a
    directory, where all my build files are stored. I detected, that
    relative paths e.g.

    addArtifactPattern(file('../ThirdParty').absolutePath ...

    is now interpreted to be relative to my build file. Is this
    behaviour intended? IMHO if I call gradle from a specific working
    directory, this should be the starting point for relative paths.
    Another annoying behaviour I noticed, is that the directory where
    the I store my build file is polluted with a .gradle directory. I
    think this should also be stored/generated in my working
    directory, shouldn't it?

    regards,
    René

-- ------------------------------------
    Rene Groeschke

    [email protected] <mailto:[email protected]>
    http://www.breskeby.com
    ------------------------------------


    ---------------------------------------------------------------------
    To unsubscribe from this list, please visit:

      http://xircles.codehaus.org/manage_email





--
John Murph
Automated Logic Research Team


--
------------------------------------
Rene Groeschke

[email protected]
http://www.breskeby.com
------------------------------------


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to