Mail Archives: cygwin/2010/01/22/19:09:12
Just to clear things up, none of the paths are hard-coded.
They are all obtained from environment variables or paths relative to
project root.
Only in the output from ant do they "look" absolute (the build has to
figure out an absolute path sooner or later...).
Again, the build script works perfectly fine, as long as it's not
called from within a shell script. "ant clean get-common debug" works
fine from the command line, but the same line fails with the error
mentioned when run from INSIDE a shell script.
And it's starting to look like an old Ant/Cygwin interaction issue,
slightly off-topic with regards to the original discussion.
http://www.eyt.ca/blog/item/136/ (dated)
http://ant.apache.org/manual/platform.html (mid-page: Cygwin is trouble!)
Seems this issue crops up again every now and then when cygwin or ant
comes out with an update.
-e
On Fri, Jan 22, 2010 at 10:53 PM, Warren Young <warren AT etr-usa DOT com> wrote:
> On 1/22/2010 10:23 AM, Eric Vautier wrote:
>>
>> =A0 =A0 =A0 =A0AndroidApp
>> =A0 =A0 =A0 =A0BUILD FAILED
>> =A0 =A0 =A0 =A0C:\dev\prj\app4\AndroidApp\build.xml:343: Warning: Could =
not find
>> file
>> =A0 =A0 =A0 =A0 C:\cygdrive\c\dev\prj\app4\Common\target\Common.jar to c=
opy.
>
> My first thought when I see things like this isn't "oh, bad idea, DOS sty=
le
> paths in Cygwin". =A0I think "oh, bad idea, absolute paths hard-coded int=
o a
> build system". =A0That makes it hard to build on any other system, becaus=
e it
> ranges from difficult to impossible to demand that everyone install outsi=
de
> dependencies in the same locations.
>
> There must be a tool you can use to generate the Ant files from something
> higher-level, which discovers the correct paths to use. =A0That tool could
> also abstract away the difference in path styles. =A0Something like Autom=
ake,
> Bakefile or CMake, but which knows how to create Ant files.
>
> That's where I'd put my effort, anyway.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -