Index: samurai-graph/contrib/netCDF/cdm/build.bat
diff -u samurai-graph/contrib/netCDF/cdm/build.bat:1.1 samurai-graph/contrib/netCDF/cdm/build.bat:1.2
--- samurai-graph/contrib/netCDF/cdm/build.bat:1.1      Wed Aug 12 12:58:23 2009
+++ samurai-graph/contrib/netCDF/cdm/build.bat  Tue Aug 18 17:02:49 2009
@@ -27,9 +27,6 @@

 rem build depend jar files

-rem class path
-set CLASSPATH=
-
 rem ant command
 set ANT=%TOOLS_PATH%ant.bat

@@ -43,7 +40,9 @@
 if exist %DONE_FILE% goto build_netcdf_done
  echo [netcdf] creating netcdf-4.0.jar ...
  call "%ANT%" > "%LOG_FILE%" 2>&1
-  if errorlevel 0 goto build_netcdf_success
+  if errorlevel 1 goto build_netcdf_failure
+  goto build_netcdf_success
+  :build_netcdf_failure
  set errcode=1
  echo error
  type "%LOG_FILE%"
@@ -60,17 +59,19 @@
 set errcode=0
 cd /d "%SCRIPT_PATH%"
 if not exist %DONE_FILE% goto clean_netcdf_done
-echo [netcdf] deleting netcdf-4.0.jar ...
-call "%ANT%" clean > "%LOG_FILE%" 2>&1
-if errorlevel 0 goto clean_netcdf_success
-set errcode=1
-echo error
-type "%LOG_FILE%"
-goto clean_netcdf_clean
-:clean_netcdf_success
-del /f "%DONE_FILE%"
-:clean_netcdf_clean
-del /f "%LOG_FILE%"
+  echo [netcdf] deleting netcdf-4.0.jar ...
+  call "%ANT%" clean > "%LOG_FILE%" 2>&1
+  if errorlevel 1 goto clean_netcdf_failure
+  goto clean_netcdf_success
+  :clean_netcdf_failure
+  set errcode=1
+  echo error
+  type "%LOG_FILE%"
+  goto clean_netcdf_clean
+  :clean_netcdf_success
+  del /f "%DONE_FILE%"
+  :clean_netcdf_clean
+  del /f "%LOG_FILE%"
 :clean_netcdf_done
 cd /d "%CURRENT_PATH%"
 goto %RETURN_LABEL%
Index: samurai-graph/contrib/netCDF/cdm/build.xml
diff -u samurai-graph/contrib/netCDF/cdm/build.xml:1.1 samurai-graph/contrib/netCDF/cdm/build.xml:1.2
--- samurai-graph/contrib/netCDF/cdm/build.xml:1.1      Tue Aug 11 11:30:27 2009
+++ samurai-graph/contrib/netCDF/cdm/build.xml  Fri Dec  4 20:44:17 2009
@@ -265,7 +265,8 @@
    <mkdir dir="${build.classes.dir}"/>

    <javac destdir="${build.classes.dir}" debug="${build.debug}" debuglevel="${build.debuglevel}"
-           includeAntRuntime="false" source="1.5" target="1.5">
+           includeAntRuntime="false" source="1.5" target="1.5" fork="yes"
+           memoryMaximumSize="512m">
      <src refid="sourcepath"/>
      <patternset refid="sources"/>
      <classpath refid="compile.classpath"/>
