Bugs item #858077, was opened at 2003-12-11 08:03
Message generated for change (Comment added) made by dawidweiss
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=858077&group_id=59548

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Paolo Spadafora (korfut)
Assigned to: Doug Cutting (cutting)
Summary: Build 

Initial Comment:
The file build.xml has a reference to a unix specific
command, line 268: 
 <apply executable="chmod">
      <arg value="+x"/>
      <fileset dir="${dist.dir}/bin"/>
    </apply>

Process will always fail.

it can be solved by replacing the above code with:

   <condition property="this.is.aix">
       <os family="unix"/>
    </condition>

    <antcall target="chmod">
    </antcall>

and making a new target:
  <target name="chmod" if="this.is.aix">
    <apply executable="chmod">
      <arg value="+x"/>
      <fileset dir="${dist.dir}/bin"/>
    </apply>
  </target>

not sure if we need to grant execute on windows, on my
machine runs fine.

----------------------------------------------------------------------

Comment By: Dawid Weiss (dawidweiss)
Date: 2004-12-15 10:04

Message:
Logged In: YES 
user_id=353632

The solution proposed above is good, but makes things too
complex I think -- there is a chmod task in ANT that does
the job (and is ignored on systems that don't support chmod
operation, such as Windows). The patch is given below.

Index: build.xml
===================================================================
RCS file: /cvsroot/nutch/nutch/build.xml,v
retrieving revision 1.70
diff -u -r1.70 build.xml
--- build.xml   9 Dec 2004 17:40:43 -0000       1.70
+++ build.xml   15 Dec 2004 08:59:14 -0000
@@ -363,10 +363,9 @@
       <fileset dir="${conf.dir}" excludes="**/*.template"/>
     </copy>
 
-    <apply executable="chmod">
-      <arg value="+x"/>
-      <fileset dir="${dist.dir}/bin"/>
-    </apply>
+    <chmod perm="ugo+x" type="file">
+      <fileset dir="${dist.dir}/bin" />
+    </chmod>
 
     <copy todir="${dist.dir}/docs">
       <fileset dir="${docs.dir}"/>


----------------------------------------------------------------------

Comment By: Doug Cutting (cutting)
Date: 2004-02-05 19:32

Message:
Logged In: YES 
user_id=21778

Do you have Cygwin installed, as suggested in the tutorial?
 For Win32 Nutch development you must install Cygwin.  This
is also required to make the bin/nutch script work correctly
on Win32.  This requirement is documented in the tutorial. 
I suspect that is the problem.

----------------------------------------------------------------------

Comment By: Paolo Spadafora (korfut)
Date: 2004-02-05 17:54

Message:
Logged In: YES 
user_id=713420

Doug, 
can you please fix the build.xml file, otherwise everytime i get 
a snapshot from the CVS i have to edit this file,
thank you.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=858077&group_id=59548


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to