Hi Folks, This question just came up on the JPL internal lists, so wanted to share with everyone else.
> Hi All, > > I am wondering if we can have multiple preconditions for a mime type in > the crawler. Something like: > > <preCondComparators> > <preCondComparator id="Precondition(1)"/> > <preCondComparator id="Precondition(2)"/> > > </preCondComparators> Here is the answer: > > You sure can. Here is an example I just pulled from the Crawler Config on > LMMP. > > <mime type="product/dem"> > <extractor > class="gov.nasa.jpl.lmmp.extractors.GenMetExtractor"> > <config > file="[CAS_CRAWLER_HOME]/conf/extractor/dem.properties" envReplace="true"/> > <preCondComparators> > <preCondComparator id="SemaphoreFileExists"/> > <preCondComparator id="CreateFGDCFile"/> > <preCondComparator id="FGDCFileExists"/> > <preCondComparator id="CheckProductUnique"/> > <preCondComparator id="CheckFGDCValid"/> > </preCondComparators> > </extractor> > </mime> > > Hope this helps. > Cheers, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
