Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Commit

Permalink
Cosmetic code changes, added Ant file to automate building packages a…
Browse files Browse the repository at this point in the history
…nd running code reports
  • Loading branch information
Wayne Graham committed Oct 10, 2011
1 parent 1f4b243 commit 9272bee
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
.*.sw*$
*~$
build/
dist/
TAGS
.settings
.hgignore
Expand Down
16 changes: 14 additions & 2 deletions NeatlineMapsPlugin.php
Expand Up @@ -22,7 +22,6 @@
* @author David McClure <david.mcclure@virginia.edu>
* @copyright 2010 The Board and Visitors of the University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html Apache 2 License
* @version $Id$
*/
?>

Expand Down Expand Up @@ -78,6 +77,7 @@ public function addHooksAndFilters()

}

// {{{ hookcallbacks
/**
* Hook callbacks:
*/
Expand Down Expand Up @@ -199,7 +199,9 @@ public function publicAppendToItemsShow()
}

}
// }}}

// {{{ filtercallbacks

/**
* Filter callbacks:
Expand Down Expand Up @@ -248,8 +250,18 @@ public function adminItemsFormTabs($tabs)
public function exhibitBuilderExhibitDisplayItem()
{


return;

}

//}}}

}

/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* c-hanging-comment-ender-p: nil
* End:
*/
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -8,9 +8,9 @@ in a “slippy” interface.

# Installation and Configuration
[![](http://github.com/scholarslab/NeatlineMaps/tarball/master)][1]
1. Download the most current version of NeatlineMaps
2. Install the plugin
3. Tell the plugin where to look for [GeoServer] by adding a new server.
* Download the most current version of NeatlineMaps
* Install the plugin
* Tell the plugin where to look for [GeoServer] by adding a new server.

## Feedback
We rely on the [Github issues tracker][issues] for feedback on issues
Expand Down
44 changes: 44 additions & 0 deletions build.xml
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="NeatlineMaps">
<property name="project.name" value="NeatlineMaps" />
<property name="build.dir" value="${basedir}/build" />
<property name="test.dir" value="${basedir}/tests" />
<property name="dist.dir" value="${basedir}/dist" />

<tstamp />
<property name="now" value="${DSTAMP}-${TSTAMP}" />
<property name="tar" value="${project.name}-${now}.tar" />
<property name="gzip" value="${tar}.gz" />

<target name="clean" description="Clean up the build directory">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>

<target name="setup" description="Create the directory structure for various reports">
<mkdir dir="${build.dir}/api" />
<mkdir dir="${build.dir}/code-browser" />
<mkdir dir="${build.dir}/coverage" />
<mkdir dir="${build.dir}/phpmd" />
<mkdir dir="${build.dir}/logs" />
</target>

<target name="package" description="Create a gzipped package of the current branch for distribution">
<mkdir dir="${dist.dir}" />

<tar destfile="${dist.dir}/${project.name}-${now}.tar"
basedir="${basedir}"
excludes="${build.dir}/**, ${dist.dir}/**, ${test.dir}/**" />
<gzip zipfile="${dist.dir}/${gzip}" src="${dist.dir}/${tar}" />

<delete file="${dist.dir}/${tar}" />
</target>

<target name="phpunit" depends="setup" description="Run PHPUnit tests and generate code coverage report">
<exec executable="phpunit" failonerror="false" />
</target>

<target name="build" depends="clean,setup">

</target>
</project>
2 changes: 0 additions & 2 deletions controllers/IndexController.php
Expand Up @@ -22,7 +22,6 @@
* @author David McClure <david.mcclure@virginia.edu>
* @copyright 2010 The Board and Visitors of the University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html Apache 2 License
* @version $Id$
*/
?>

Expand Down Expand Up @@ -53,4 +52,3 @@ public function indexAction()
* End:
*/

?>
2 changes: 0 additions & 2 deletions controllers/MapsController.php
Expand Up @@ -22,7 +22,6 @@
* @author David McClure <david.mcclure@virginia.edu>
* @copyright 2010 The Board and Visitors of the University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html Apache 2 License
* @version $Id$
*/
?>

Expand Down Expand Up @@ -489,4 +488,3 @@ protected function _doServerForm($item_id)
* End:
*/

?>
16 changes: 12 additions & 4 deletions plugin.php
Expand Up @@ -14,15 +14,14 @@
* OF ANY KIND, either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
* @package omeka
* @subpackage neatlinemaps
* @package Omeka
* @subpackage NeatlineMaps
* @author Scholars' Lab <>
* @author Bethany Nowviskie <bethany@virginia.edu>
* @author Adam Soroka <ajs6f@virginia.edu>
* @author David McClure <david.mcclure@virginia.edu>
* @copyright 2010 The Board and Visitors of the University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html Apache 2 License
* @version $Id$
* @category plugins
*/
?>

Expand All @@ -42,3 +41,12 @@
require_once NEATLINE_MAPS_PLUGIN_DIR . '/libraries/GeoserverMap/GeoserverMap_Abstract.php';

new NeatlineMapsPlugin;

/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* c-hanging-comment-ender-p: nil
* End:
*/

0 comments on commit 9272bee

Please sign in to comment.