[seek-dev] Re: Uber Build instructions anywhere???

Matt Jones jones at nceas.ucsb.edu
Mon Oct 20 14:33:18 PDT 2003


Jing,

The better way to do that is to require the user to point at a metacat 
build in the build file if they are building the metacat ecogrid 
wrappers.  That way, you won't check in the jar, but the dependency will 
be explicit in the build.  You can see an example of how I did this in 
the metacat "clientjar" target where the utilities jar is a required 
dependency.

Matt

Jing Tao wrote:
> Hi, Matt and Rod:
> 
> I am sorry I didn't write  documentation about the build file. The 
> reseaon is our system is not very mature and we currently only have 3 
> implementation. Definitely, I will do soon. Rod, if you have any question 
> just let me know.( I already helped Bing to set up his system closely to 
> success). 
> 
> The problem look like a path issue. You need to put the jar file (I sent 
> to you half an hour ago) into ~seek/projects/ecogrid/lib and it will be 
> fine.
> 
> I didn't checkin the metacat.jar to ecogrid/lib. The reseaon is that if 
> everybody check their jar into lib, our ecogrid system will be huge in 
> future. So in build.xml file, user can configure it and system only need 
> your own jar file (To me, just metacat.jar).
> 
> 
> Hope this is helpful.
> 
> Jing
> 
> On Mon, 20 Oct 2003, Matt Jones wrote:
> 
> 
>>Rod,
>>
>>This is the sort of question you should send to 
>>seek-dev at ecoinformatics.org so that other developers can respond.  In 
>>this case, the code you are working with is under development and Jing 
>>Tao has done most of it, so is probably the best person to answer that 
>>question.  It may be that you need to run certain ant tasks in order for 
>>this to work, but more likely it seems to just be a classpath problem, 
>>in that the symbol it is trying to resolve (QueryGroup) is in 
>>metacat.jar, which you said you've built successfully.  Once we get the 
>>initial system building, I think it would be a good idea to fully 
>>document the build process for all of the systems, and to make sure 
>>there is one easy-to-run target in the ant build file that puts 
>>everything together.  To get there, it would be useful for you to record 
>>all of the issues you encountered in one place.
>>
>>Jing -- can you help out with this question?
>>
>>Matt
>>
>>Rod Spears wrote:
>>
>>
>>>I am trying to build the EcoGrid src and feeling quite lost as to what 
>>>all needs to be in place and where before I can make this happen.
>>>
>>>Is there some master set of instructions?
>>>
>>>I got ecogrid to build as far as MetaCat, so I built MetaCat and placed 
>>>the metacat.jar into the gt3/lib and now I am getting other errors:
>>>
>>>compileStubs:
>>>
>>>compileImpl:
>>>    [javac] Compiling 3 source files to 
>>>S:\seek\projects\ecogrid\build\classes
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:30: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: package metacat
>>>    [javac] import edu.ucsb.nceas.metacat.QueryGroup;
>>>    [javac]                               ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:32: cannot resolve symbol
>>>    [javac] symbol  : class QueryTerm
>>>    [javac] location: package metacat
>>>    [javac] import edu.ucsb.nceas.metacat.QueryTerm;
>>>    [javac]                               ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:189: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]   private void handleANDChildren(QueryGroup metacatParent, 
>>>ANDType a
>>>ndParent)
>>>    [javac]                                  ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:228: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]   private void handleORChildren(QueryGroup metacatParent, 
>>>ORType orP
>>>arent)
>>>    [javac]                                 ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:267: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]   private void handleANDType(QueryGroup parent, ANDType and)
>>>    [javac]                              ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:283: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]   private void handleORType(QueryGroup parent, ORType or)
>>>    [javac]                             ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:299: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]   private void handleConditionType(QueryGroup parent, 
>>>ConditionType
>>>condition)
>>>    [javac]                                    ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:78: cannot resolve symbol
>>>    [javac] symbol  : constructor QuerySpecification (java.lang.String)
>>>    [javac] location: class edu.ucsb.nceas.metacat.QuerySpecification
>>>    [javac]                new 
>>>QuerySpecification(MetaCatUtil.getOption("accNumS
>>>eparator"));
>>>    [javac]                ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:144: cannot resolve symbol
>>>    [javac] symbol  : method handleReturnField (java.lang.String)
>>>    [javac] location: class edu.ucsb.nceas.metacat.QuerySpecification
>>>    [javac]          metacatQuery.handleReturnField(returnField);
>>>    [javac]                      ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:156: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     QueryGroup query = null;
>>>    [javac]     ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:162: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]       query = new QueryGroup(INTERSECT);
>>>    [javac]                   ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:169: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]       query = new QueryGroup(UNION);
>>>    [javac]                   ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:176: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]       query = new QueryGroup(INTERSECT);
>>>    [javac]                   ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:275: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     QueryGroup kid = new QueryGroup(INTERSECT);
>>>    [javac]     ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:275: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     QueryGroup kid = new QueryGroup(INTERSECT);
>>>    [javac]                          ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:291: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     QueryGroup kid = new QueryGroup(UNION);
>>>    [javac]     ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:291: cannot resolve symbol
>>>    [javac] symbol  : class QueryGroup
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     QueryGroup kid = new QueryGroup(UNION);
>>>    [javac]                          ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:302: cannot resolve symbol
>>>    [javac] symbol  : class QueryTerm
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     QueryTerm term = null;
>>>    [javac]     ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\EcogridJavaToMetacatJavaQueryTransformer.java:318: cannot resolve symbol
>>>    [javac] symbol  : class QueryTerm
>>>    [javac] location: class 
>>>org.ecoinformatics.ecogrid.metacat.impl.EcogridJavaT
>>>oMetacatJavaQueryTransformer
>>>    [javac]     term = new QueryTerm(false, metacatOperator, value, 
>>>pathString);
>>>
>>>    [javac]                ^
>>>    [javac] 
>>>S:\seek\projects\ecogrid\src\org\ecoinformatics\ecogrid\metacat\impl
>>>\MetacatImpl.java:76: cannot resolve symbol
>>>    [javac] symbol  : method findDocuments 
>>>(edu.ucsb.nceas.metacat.QuerySpecific
>>>ation,java.lang.String,<nulltype>,boolean)
>>>    [javac] location: class edu.ucsb.nceas.metacat.DBQuery
>>>    [javac]       Hashtable result = metacat.findDocuments(metacatQuery, 
>>>"public
>>>", null, true);
>>>    [javac]                                 ^
>>>    [javac] 20 errors
>>>
>>>BUILD FAILED
>>>file:S:/seek/projects/ecogrid/build.xml:168: Compile failed; see the 
>>>compiler er
>>>ror output for details.
>>>
>>>Total time: 5 seconds
>>>S:\seek\projects\ecogrid>
>>
>>
>>_______________________________________________
>>seek-dev mailing list
>>seek-dev at ecoinformatics.org
>>http://www.ecoinformatics.org/mailman/listinfo/seek-dev
>>
> 
> 

-- 
-------------------------------------------------------------------
Matt Jones                                     jones at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Fax: 425-920-2439    Ph: 907-789-0496
National Center for Ecological Analysis and Synthesis (NCEAS)
University of California Santa Barbara
Interested in ecological informatics? http://www.ecoinformatics.org
-------------------------------------------------------------------




More information about the Seek-dev mailing list