Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
loomchild committed Sep 24, 2015
0 parents commit a19172f
Show file tree
Hide file tree
Showing 874 changed files with 113,109 additions and 0 deletions.
120 changes: 120 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Created by https://www.gitignore.io/api/maven,eclipse,intellij,java

### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties


### Eclipse ###
*.pydevproject
.metadata
.gradle
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath

# Eclipse Core
.project

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Java annotation processor (APT)
.factorypath

# PDT-specific
.buildpath

# sbteclipse plugin
.target

# TeXlipse plugin
.texlipse


### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties


### Java ###
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

private/
32 changes: 32 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apply plugin: 'java'
apply plugin: 'application'

version = '1.0'

mainClassName = 'net.loomchild.maligna.ui.Maligna'

repositories {
mavenLocal()
mavenCentral()
}

dependencies {
compile 'net.loomchild:segment:2.0.0-SNAPSHOT
compile 'commons-logging:commons-logging:1.1.1'
compile 'commons-cli:commons-cli:1.2'
compile 'junit:junit:4.1'
}
applicationDistribution.from("$projectDir/examples") {
into "examples"
}
applicationDistribution.from("$projectDir/README.md")
distZip.doLast {
file("$destinationDir/$archiveName").renameTo("$destinationDir/"+baseName+'-'+version+'.zip')
}
task wrapper(type: Wrapper) {
gradleVersion = '2.7'
}
3 changes: 3 additions & 0 deletions build.number
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Build Number for ANT. Do not edit!
#Mon Oct 24 14:00:49 CEST 2011
build.number=2
5 changes: 5 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project.name=maligna
project.version=2.7
project.fullversion=${project.version}.${build.number}
project.fullname=${project.name}-${project.fullversion}
project.authors=Jarek Lipski
140 changes: 140 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<project name="maligna" default="compile" basedir=".">

<description>Maligna is a bilingual sentence aligner.</description>


<property file="build.number" />
<property file="build.properties" />

<tstamp>
<format property="build.date" pattern="yyyy-MM-dd"/>
</tstamp>

<path id="project.class.path">
<pathelement path="${java.class.path}"/>
<pathelement location="build/classes"/>
<pathelement location="res"/>
<fileset dir="lib" includes="**/*.jar" />
</path>

<filterset id="filter.version">
<filter token="project.fullversion" value="${project.fullversion}"/>
<filter token="build.date" value="${build.date}"/>
</filterset>


<target name="init">
<mkdir dir="build"/>
<mkdir dir="build/classes"/>
<mkdir dir="build/dist"/>
<mkdir dir="build/javadoc"/>
</target>


<target name="compile" depends="init" description="compile the source">
<javac
srcdir="src"
destdir="build/classes"
encoding="utf-8"
classpathref="project.class.path"
source="1.6"
target="1.6"
debug="on"
includeantruntime="false"/>
<copy todir="build/classes">
<fileset dir="res" includes="**/*"/>
</copy>
</target>


<target name="jardist" depends="compile" description="generate binary jar archive">
<buildnumber/>
<delete file="build/dist/${project.name}-*.jar" failonerror="false"/>
<jar jarfile="build/dist/${project.fullname}.jar">
<fileset dir="build/classes" />
<fileset dir="src" />
<manifest>
<attribute name="Built-By" value="${project.authors}"/>
<attribute name="Build-Date" value="${build.date}"/>
<attribute name="Implementation-Version" value="${project.fullversion}"/>
</manifest>
</jar>
</target>


<target name="javadoc" depends="init" description="generate javadoc">
<delete dir="build/javadoc" />
<javadoc
destdir="build/javadoc"
encoding="utf-8"
charset="utf-8"
classpathref="project.class.path"
source="1.6"
author="true"
version="true"
use="true"
windowtitle="maligna">
<fileset dir="src">
<include name="**/*.java"/>
<exclude name="**/*Test.java"/>
</fileset>
</javadoc>
</target>


<target name="bindist" depends="jardist, javadoc" description="generate full binary distribution">

<delete file="build/dist/${project.name}-*.zip" failonerror="false"/>
<delete dir="build/dist/${project.name}-*" failonerror="false"/>
<mkdir dir="build/dist/${project.fullname}"/>

<copy todir="build/dist/${project.fullname}">
<fileset dir=".">
<include name="lib/**"/>
<include name="example/**"/>
<include name="result/**"/>
<include name="bin/**"/>
</fileset>
</copy>

<copy todir="build/dist/${project.fullname}" filtering="true">
<filterset refid="filter.version"/>
<fileset dir=".">
<include name="doc/**"/>
</fileset>
</copy>

<copy file="build/dist/${project.fullname}.jar" todir="build/dist/${project.fullname}/lib"/>

<copy todir="build/dist/${project.fullname}/doc">
<fileset dir="build">
<include name="javadoc/**"/>
</fileset>
</copy>


<zip destfile="build/dist/${project.fullname}.zip">
<fileset dir="build/dist">
<include name="${project.fullname}/**"/>
<exclude name="${project.fullname}/bin/**"/>
<exclude name="${project.fullname}/example/script/**"/>
</fileset>
<zipfileset dir="build/dist" filemode="755">
<include name="${project.fullname}/bin/**"/>
<include name="${project.fullname}/example/script/**"/>
</zipfileset>
</zip>

<delete dir="build/dist/${project.fullname}"/>

</target>


<target name="clean" description="clean up">
<delete includeemptydirs="true">
<fileset dir="build" includes="**/*" />
</delete>
</target>


</project>
29 changes: 29 additions & 0 deletions doc/.svn/all-wcprops
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
K 25
svn:wc:ra_dav:version-url
V 44
/svnroot/align/!svn/ver/50/trunk/maligna/doc
END
readme.html
K 25
svn:wc:ra_dav:version-url
V 56
/svnroot/align/!svn/ver/50/trunk/maligna/doc/readme.html
END
history.html
K 25
svn:wc:ra_dav:version-url
V 57
/svnroot/align/!svn/ver/57/trunk/maligna/doc/history.html
END
authors.html
K 25
svn:wc:ra_dav:version-url
V 57
/svnroot/align/!svn/ver/44/trunk/maligna/doc/authors.html
END
copying.html
K 25
svn:wc:ra_dav:version-url
V 57
/svnroot/align/!svn/ver/39/trunk/maligna/doc/copying.html
END
Loading

0 comments on commit a19172f

Please sign in to comment.