This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Design issue with new MS-DOS style path warning?


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@etr-usa.com> wrote:
> On 1/22/2010 10:23 AM, Eric Vautier wrote:
>>
>> ? ? ? ?AndroidApp
>> ? ? ? ?BUILD FAILED
>> ? ? ? ?C:\dev\prj\app4\AndroidApp\build.xml:343: Warning: Could not find
>> file
>> ? ? ? ? C:\cygdrive\c\dev\prj\app4\Common\target\Common.jar to copy.
>
> My first thought when I see things like this isn't "oh, bad idea, DOS style
> paths in Cygwin". ?I think "oh, bad idea, absolute paths hard-coded into a
> build system". ?That makes it hard to build on any other system, because it
> ranges from difficult to impossible to demand that everyone install outside
> 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. ?That tool could
> also abstract away the difference in path styles. ?Something like Automake,
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]