Skip to content

Instantly share code, notes, and snippets.

View butlermh's full-sized avatar

Mark H. Butler butlermh

  • Santa Clara, United States
View GitHub Profile
@butlermh
butlermh / ivyexample3
Created June 8, 2011 13:31
Using configurations in Ivy
<ivy-module version="1.0">
<info .... />
<configurations>
<conf name="job" description=".job file dependency"/>
<conf name="test" description="Test dependency"/>
<conf name="default" extends="job" description="Dependency required by users of .jar"/>
</configurations>
<publications .... />
<dependencies defaultconf="*->*,!sources,!javadoc">
<dependency org="uk.ac.gate" name="gate-core" rev="6.1" conf="job->default(*),optional(*)"/>
@butlermh
butlermh / ivyexample2
Created June 8, 2011 13:02
How to get Ivy to resolve from a local Maven repository
<property name="local-maven2-pattern"
value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision]"
override="false" />
...
<resolvers>
<chain ...
<filesystem
name="local-maven2"
m2compatible="true" >
<ivy pattern="${local-maven2-pattern}.pom"/>
@butlermh
butlermh / CorpusGeneratorQueue.java
Created June 2, 2011 21:10
Threaded Implementation of Corpus Generator
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@butlermh
butlermh / CorpusGenerator.java
Created June 1, 2011 19:11
Version of CorpusGenerator that supports FileFilter, File recursion and NIO for reading files from local filesystem.
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*