You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "stack@archive.org (JIRA)" <ji...@apache.org> on 2005/11/29 19:43:30 UTC

[jira] Created: (NUTCH-130) Be explicit about target JVM when building (1.4.x?)

Be explicit about target JVM when building (1.4.x?)
---------------------------------------------------

         Key: NUTCH-130
         URL: http://issues.apache.org/jira/browse/NUTCH-130
     Project: Nutch
        Type: Improvement
    Reporter: stack@archive.org
    Priority: Minor


Below is patch for nutch build.xml.  It stipulates the target JVM is 1.4.x.  Without explicit target, a nutch built with 1.5.x java defaults to a 1.5.x java target and won't run in a 1.4.x JVM.  Can be annoying (From the ant javac doc, regards the target attribute: "We highly recommend to always specify this attribute.").

[debord 282] nutch > svn diff -u build.xml
Subcommand 'diff' doesn't accept option '-u [--show-updates]'
Type 'svn help diff' for usage.
[debord 283] nutch > svn diff build.xml
Index: build.xml
===================================================================
--- build.xml   (revision 349779)
+++ build.xml   (working copy)
@@ -72,6 +72,8 @@
      destdir="${build.classes}"
      debug="${debug}"
      optimize="${optimize}"
+     target="1.4"
+     source="1.4"
      deprecation="${deprecation}">
       <classpath refid="classpath"/>
     </javac>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (NUTCH-130) Be explicit about target JVM when building (1.4.x?)

Posted by "stack@archive.org (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/NUTCH-130?page=comments#action_12358981 ] 

stack@archive.org commented on NUTCH-130:
-----------------------------------------

Need to do same for plugin compile:

$  /usr/local/bin/svn diff src/plugin/build-plugin.xml
Index: src/plugin/build-plugin.xml
===================================================================
--- src/plugin/build-plugin.xml (revision 350057)
+++ src/plugin/build-plugin.xml (working copy)
@@ -85,6 +85,8 @@
      includes="**/*.java"
      destdir="${build.classes}"
      debug="${javac.debug}"
+     target="1.4"
+     source="1.4"
      deprecation="${javac.deprecation}">
       <classpath refid="classpath"/>
     </javac>  

> Be explicit about target JVM when building (1.4.x?)
> ---------------------------------------------------
>
>          Key: NUTCH-130
>          URL: http://issues.apache.org/jira/browse/NUTCH-130
>      Project: Nutch
>         Type: Improvement
>     Reporter: stack@archive.org
>     Priority: Minor

>
> Below is patch for nutch build.xml.  It stipulates the target JVM is 1.4.x.  Without explicit target, a nutch built with 1.5.x java defaults to a 1.5.x java target and won't run in a 1.4.x JVM.  Can be annoying (From the ant javac doc, regards the target attribute: "We highly recommend to always specify this attribute.").
> [debord 282] nutch > svn diff -u build.xml
> Subcommand 'diff' doesn't accept option '-u [--show-updates]'
> Type 'svn help diff' for usage.
> [debord 283] nutch > svn diff build.xml
> Index: build.xml
> ===================================================================
> --- build.xml   (revision 349779)
> +++ build.xml   (working copy)
> @@ -72,6 +72,8 @@
>       destdir="${build.classes}"
>       debug="${debug}"
>       optimize="${optimize}"
> +     target="1.4"
> +     source="1.4"
>       deprecation="${deprecation}">
>        <classpath refid="classpath"/>
>      </javac>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (NUTCH-130) Be explicit about target JVM when building (1.4.x?)

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-130?page=all ]
     
Doug Cutting resolved NUTCH-130:
--------------------------------

    Fix Version: 0.8-dev
     Resolution: Fixed
      Assign To: Doug Cutting

I just committed this.  I moved the version to the default.properties file, and found a few other places where javac is called.

> Be explicit about target JVM when building (1.4.x?)
> ---------------------------------------------------
>
>          Key: NUTCH-130
>          URL: http://issues.apache.org/jira/browse/NUTCH-130
>      Project: Nutch
>         Type: Improvement
>     Reporter: stack@archive.org
>     Assignee: Doug Cutting
>     Priority: Minor
>      Fix For: 0.8-dev

>
> Below is patch for nutch build.xml.  It stipulates the target JVM is 1.4.x.  Without explicit target, a nutch built with 1.5.x java defaults to a 1.5.x java target and won't run in a 1.4.x JVM.  Can be annoying (From the ant javac doc, regards the target attribute: "We highly recommend to always specify this attribute.").
> [debord 282] nutch > svn diff -u build.xml
> Subcommand 'diff' doesn't accept option '-u [--show-updates]'
> Type 'svn help diff' for usage.
> [debord 283] nutch > svn diff build.xml
> Index: build.xml
> ===================================================================
> --- build.xml   (revision 349779)
> +++ build.xml   (working copy)
> @@ -72,6 +72,8 @@
>       destdir="${build.classes}"
>       debug="${debug}"
>       optimize="${optimize}"
> +     target="1.4"
> +     source="1.4"
>       deprecation="${deprecation}">
>        <classpath refid="classpath"/>
>      </javac>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira