gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject resources on the classpath
Date Fri, 19 Oct 2007 11:01:34 GMT
Now that I've patched Ant to fix Ivy, our components build is failing 
instead of the root smartfrog build

http://vmgump.apache.org/gump/public/smartfrog/smartfrog-components/gump_work/build_smartfrog_smartfrog-components.html


bind-to-smartfrog:
  [property] Unable to find resource 
org/smartfrog/smartfrog-version.properties

BUILD FAILED
/srv/gump/public/workspace/smartfrog/build.xml:534: The following error 
occurred while executing this line:
/srv/gump/public/workspace/smartfrog/common.xml:237: SmartFrog 
distribution not found. Please create the SmartFrog distribution first.
Alternatively, make sure that this project is configured to locate the 
distribution
correctly.


What's happening is we're looking for a properties file on the 
classpath, that drives the version marking for everything downstream we 
build (which knows which version it got compiled against).

     <!-- name the resource -->
     <property name="smartfrog.version.property.resource"
       value="org/smartfrog/smartfrog-version.properties"
       />

    <!-- load in our version -->
    <!--<property resource="${smartfrog.version.property.resource}"/>-->
    <property resource="${smartfrog.version.property.resource}"
        classpathref="smartfrog.classpath"/>

     <!-- check for its presence; break the build if missing -->
     <fail unless="sf.build.version">

SmartFrog distribution not found. Please create the SmartFrog 
distribution first.
Alternatively, make sure that this project is configured to locate the 
distribution
correctly.

smartfrog.classpath=
  ${toString:smartfrog.classpath}

build.sysclasspath=${build.sysclasspath}

java.class.path=
   ${java.class.path}
     </fail>

so, clearly org/smartfrog/smartfrog-version.properties isnt on the 
classpath. The usual problem, things arent set up right. But look at 
what is on the classpath: 
/srv/gump/public/workspace/smartfrog/smartfrog/dist/lib/smartfrog-18102007.jar
This is meant to be the file that contains the properties

Possibilities
  -we arent setting up the properties file right
  -its not being read off the classpath
  -the smartfrog-18102007.jar isnt where it should be

Any ideas?


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message