You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
(48) |
May
(21) |
Jun
(3) |
Jul
(10) |
Aug
(66) |
Sep
(11) |
Oct
(7) |
Nov
(73) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(3) |
Feb
(17) |
Mar
(19) |
Apr
(1) |
May
(4) |
Jun
|
Jul
(43) |
Aug
(18) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
|
2010 |
Jan
(3) |
Feb
(7) |
Mar
(21) |
Apr
(2) |
May
(1) |
Jun
(1) |
Jul
(6) |
Aug
(6) |
Sep
(7) |
Oct
|
Nov
(1) |
Dec
|
2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <lh...@us...> - 2011-01-10 08:11:51
|
Revision: 417 http://tinytim.svn.sourceforge.net/tinytim/?rev=417&view=rev Author: lheuer Date: 2011-01-10 08:11:45 +0000 (Mon, 10 Jan 2011) Log Message: ----------- Fixed normaization of xsd:decimals Modified Paths: -------------- tinytim/trunk/CHANGES.txt tinytim/trunk/src/main/java/org/tinytim/core/value/LiteralNormalizer.java tinytim/trunk/src/test/java/org/tinytim/core/value/TestLiteralNormalizer.java Modified: tinytim/trunk/CHANGES.txt =================================================================== --- tinytim/trunk/CHANGES.txt 2010-11-06 10:07:21 UTC (rev 416) +++ tinytim/trunk/CHANGES.txt 2011-01-10 08:11:45 UTC (rev 417) @@ -2,7 +2,7 @@ Changes Log =========== -2.0.1 (2010-mm-dd) +2.0.1 (2011-mm-dd) ------------------ * tinyTiM is forward-compatible to TMAPI 2.0.3 * OSGi bundle exports the .voc package @@ -11,6 +11,8 @@ (caused heap memory problems and fixes a bug reported by Uta Schulze) * Locator: Resolving a reference with white spaces caused problems. Fixed. (reported by Uta Schulze) +* The lexical representation of decimals like "-.3" was interpreted as "+0.3". + Fixed. Modified: tinytim/trunk/src/main/java/org/tinytim/core/value/LiteralNormalizer.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/value/LiteralNormalizer.java 2010-11-06 10:07:21 UTC (rev 416) +++ tinytim/trunk/src/main/java/org/tinytim/core/value/LiteralNormalizer.java 2011-01-10 08:11:45 UTC (rev 417) @@ -144,6 +144,9 @@ } if (len <= idx) { normalized.append('0'); + if (normalized.charAt(0) == '0') { + return "0.0"; + } } else { // idx points to the '.', increment it @@ -157,7 +160,7 @@ idx++; } } - return negative && normalized.charAt(0) != '0' ? '-' + normalized.toString() : normalized.toString(); + return negative ? '-' + normalized.toString() : normalized.toString(); } } Modified: tinytim/trunk/src/test/java/org/tinytim/core/value/TestLiteralNormalizer.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/value/TestLiteralNormalizer.java 2010-11-06 10:07:21 UTC (rev 416) +++ tinytim/trunk/src/test/java/org/tinytim/core/value/TestLiteralNormalizer.java 2011-01-10 08:11:45 UTC (rev 417) @@ -62,6 +62,9 @@ assertEquals("0.0", LiteralNormalizer.normalizeDecimal("-0")); assertEquals("0.0", LiteralNormalizer.normalizeDecimal("-0.0")); assertEquals("0.0", LiteralNormalizer.normalizeDecimal("+0.0")); + assertEquals("-0.3", LiteralNormalizer.normalizeDecimal("-.3")); + assertEquals("0.3", LiteralNormalizer.normalizeDecimal("+.3")); + assertEquals("-0.03", LiteralNormalizer.normalizeDecimal("-.03")); assertEquals("0.0", LiteralNormalizer.normalizeDecimal("+00000.0000000")); assertEquals("0.0", LiteralNormalizer.normalizeDecimal("-00000.0000000")); assertEquals("10.0", LiteralNormalizer.normalizeDecimal("10")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-11-06 10:07:28
|
Revision: 416 http://tinytim.svn.sourceforge.net/tinytim/?rev=416&view=rev Author: lheuer Date: 2010-11-06 10:07:21 +0000 (Sat, 06 Nov 2010) Log Message: ----------- Fixed Emma URL (see also <http://jira.codehaus.org/browse/GRADLE-1210>) Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-09-15 16:49:58 UTC (rev 415) +++ tinytim/trunk/build.gradle 2010-11-06 10:07:21 UTC (rev 416) @@ -23,7 +23,7 @@ apply plugin: 'osgi' apply plugin: 'maven' apply plugin: 'eclipse' -apply from:'http://github.com/breskeby/gradleplugins/raw/master/emmaPlugin/emma.gradle' +apply from:'https://github.com/breskeby/gradleplugins/raw/master/emmaPlugin/emma.gradle' defaultTasks 'clean', 'build' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-15 16:50:04
|
Revision: 415 http://tinytim.svn.sourceforge.net/tinytim/?rev=415&view=rev Author: lheuer Date: 2010-09-15 16:49:58 +0000 (Wed, 15 Sep 2010) Log Message: ----------- Added Emma test coverage plugin Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-09-03 16:02:14 UTC (rev 414) +++ tinytim/trunk/build.gradle 2010-09-15 16:49:58 UTC (rev 415) @@ -23,6 +23,7 @@ apply plugin: 'osgi' apply plugin: 'maven' apply plugin: 'eclipse' +apply from:'http://github.com/breskeby/gradleplugins/raw/master/emmaPlugin/emma.gradle' defaultTasks 'clean', 'build' @@ -51,6 +52,8 @@ } dependencies { + emma 'emma:emma:2.0.5312', 'emma:emma_ant:2.0.5312' + compile 'org.tmapi:tmapi:[2.0.2,)' compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-03 16:02:20
|
Revision: 414 http://tinytim.svn.sourceforge.net/tinytim/?rev=414&view=rev Author: lheuer Date: 2010-09-03 16:02:14 +0000 (Fri, 03 Sep 2010) Log Message: ----------- Updated build Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-09-03 16:01:18 UTC (rev 413) +++ tinytim/trunk/build.gradle 2010-09-03 16:02:14 UTC (rev 414) @@ -51,7 +51,7 @@ } dependencies { - compile 'org.tmapi:tmapi:[2.0.0,)' + compile 'org.tmapi:tmapi:[2.0.2,)' compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-03 16:01:24
|
Revision: 413 http://tinytim.svn.sourceforge.net/tinytim/?rev=413&view=rev Author: lheuer Date: 2010-09-03 16:01:18 +0000 (Fri, 03 Sep 2010) Log Message: ----------- Resolving references with whitespaces did not work. Fixed. Modified Paths: -------------- tinytim/trunk/CHANGES.txt tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java Modified: tinytim/trunk/CHANGES.txt =================================================================== --- tinytim/trunk/CHANGES.txt 2010-09-02 10:33:10 UTC (rev 412) +++ tinytim/trunk/CHANGES.txt 2010-09-03 16:01:18 UTC (rev 413) @@ -9,9 +9,11 @@ (contributed by Hannes Niederhausen) * Removed String-Interning for object ids (caused heap memory problems and fixes a bug reported by Uta Schulze) - +* Locator: Resolving a reference with white spaces caused problems. Fixed. + (reported by Uta Schulze) + 2.0.0 (2010-03-19) ------------------ * Updated TMAPI to 2.0.2 (kept compatibility to 2.0 and 2.0.1) Modified: tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-09-02 10:33:10 UTC (rev 412) +++ tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-09-03 16:01:18 UTC (rev 413) @@ -148,7 +148,7 @@ if (_EMPTY.equals(reference)) { return this; } - return create(_uri.resolve(reference)); + return create(_uri.resolve(reference.replace(" ", "%20"))); } /* (non-Javadoc) Modified: tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java 2010-09-02 10:33:10 UTC (rev 412) +++ tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java 2010-09-03 16:01:18 UTC (rev 413) @@ -38,6 +38,11 @@ assertEquals("http://www.example.org/test%20me/", loc3.toExternalForm()); } + public void testResolve() { + Locator loc = _tm.createLocator("http://www.example.org/"); + assertEquals("http://www.example.org/#uta%20schulze", loc.resolve("#uta schulze").toExternalForm()); + } + // public void testLowerCaseScheme() { // Locator loc = _tm.createLocator("HTTP://www.example.org/test+me/"); // assertEquals("http://www.example.org/test me/", loc.getReference()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-02 10:33:16
|
Revision: 412 http://tinytim.svn.sourceforge.net/tinytim/?rev=412&view=rev Author: lheuer Date: 2010-09-02 10:33:10 +0000 (Thu, 02 Sep 2010) Log Message: ----------- Fixed dependencies Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-09-02 09:38:20 UTC (rev 411) +++ tinytim/trunk/build.gradle 2010-09-02 10:33:10 UTC (rev 412) @@ -51,11 +51,12 @@ } dependencies { - compile 'org.tmapi:tmapi:(2.0.2,)' + compile 'org.tmapi:tmapi:[2.0.0,)' compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' testCompile 'junit:junit:4.8.1', + 'org.tmapi:tmapi:2.0.3-SNAPSHOT', 'org.tmapi:tmapi-tests:2.0.3-SNAPSHOT', 'com.semagia.mio:mio-core-tests:0.9.6-SNAPSHOT', 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-02 09:38:27
|
Revision: 411 http://tinytim.svn.sourceforge.net/tinytim/?rev=411&view=rev Author: lheuer Date: 2010-09-02 09:38:20 +0000 (Thu, 02 Sep 2010) Log Message: ----------- Updated POM Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-09-01 18:27:40 UTC (rev 410) +++ tinytim/trunk/build.gradle 2010-09-02 09:38:20 UTC (rev 411) @@ -11,6 +11,14 @@ version = '2.0.1' bundleVersion = version +project.projectName = 'tinyTiM' +project.projectDescription = 'Topic Maps engine' +project.vendorName = 'tinyTiM project' +project.vendorURL = 'http://tinytim.sourceforge.net/' +project.licenseName = 'Apache Software License, Version 2.0' +project.licenseURL = 'http://www.apache.org/licenses/LICENSE-2.0.txt' +project.projectURL = 'http://tinytim.sourceforge.net/' + apply plugin: 'java' apply plugin: 'osgi' apply plugin: 'maven' @@ -27,11 +35,15 @@ } } +REP_TMAPI = 'http://www.tmapi.org/maven-repository/' +REP_TMAPI_SNAPSHOTS = 'http://www.tmapi.org/maven-repository/snapshots/' +REP_SEMAGIA_SNAPSHOTS = 'http://repository.semagia.com/snapshots/' + repositories { mavenCentral() - mavenRepo urls: 'http://www.tmapi.org/maven-repository/' - mavenRepo urls: 'http://www.tmapi.org/maven-repository/snapshots/' - mavenRepo urls: 'http://repository.semagia.com/snapshots/' + mavenRepo urls: REP_TMAPI + mavenRepo urls: REP_TMAPI_SNAPSHOTS + mavenRepo urls: REP_SEMAGIA_SNAPSHOTS } configurations { @@ -90,5 +102,36 @@ uploadArchives { repositories.mavenDeployer { repository(url: "file://$buildDir/maven-repo/") + + pom.project { + name project.projectName + description project.projectDescription + url project.projectURL + + organization { + name project.vendorName + url project.vendorURL + } + licenses { + license { + name project.licenseName + url project.licenseURL + } + } + repositories { + repository { + id 'tmapi' + url REP_TMAPI + } + repository { + id 'tmapi-snapshot' + url REP_TMAPI_SNAPSHOTS + } + repository { + id 'semagia-snapshots' + url REP_SEMAGIA_SNAPSHOTS + } + } + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-01 18:27:46
|
Revision: 410 http://tinytim.svn.sourceforge.net/tinytim/?rev=410&view=rev Author: lheuer Date: 2010-09-01 18:27:40 +0000 (Wed, 01 Sep 2010) Log Message: ----------- Removed tinyTiM MIO Removed Paths: ------------- tinytim-mio/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-09-01 18:15:25
|
Revision: 409 http://tinytim.svn.sourceforge.net/tinytim/?rev=409&view=rev Author: lheuer Date: 2010-09-01 18:15:18 +0000 (Wed, 01 Sep 2010) Log Message: ----------- Updated build, CHANGES.txt Modified Paths: -------------- tinytim/trunk/CHANGES.txt tinytim/trunk/build.gradle Modified: tinytim/trunk/CHANGES.txt =================================================================== --- tinytim/trunk/CHANGES.txt 2010-08-31 17:59:20 UTC (rev 408) +++ tinytim/trunk/CHANGES.txt 2010-09-01 18:15:18 UTC (rev 409) @@ -4,6 +4,7 @@ 2.0.1 (2010-mm-dd) ------------------ +* tinyTiM is forward-compatible to TMAPI 2.0.3 * OSGi bundle exports the .voc package (contributed by Hannes Niederhausen) * Removed String-Interning for object ids Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-08-31 17:59:20 UTC (rev 408) +++ tinytim/trunk/build.gradle 2010-09-01 18:15:18 UTC (rev 409) @@ -39,7 +39,7 @@ } dependencies { - compile 'org.tmapi:tmapi:2.0.2' + compile 'org.tmapi:tmapi:(2.0.2,)' compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-08-31 17:59:28
|
Revision: 408 http://tinytim.svn.sourceforge.net/tinytim/?rev=408&view=rev Author: lheuer Date: 2010-08-31 17:59:20 +0000 (Tue, 31 Aug 2010) Log Message: ----------- Removed unused tests, added TopicMap.clear Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/core/ConstructImpl.java tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java tinytim/trunk/src/main/java/org/tinytim/core/MemoryTopicMap.java tinytim/trunk/src/main/java/org/tinytim/index/IndexManager.java Removed Paths: ------------- tinytim/trunk/src/test/java/org/tinytim/core/AllTests.java tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPICore.java tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPIIndex.java Modified: tinytim/trunk/src/main/java/org/tinytim/core/ConstructImpl.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/ConstructImpl.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/main/java/org/tinytim/core/ConstructImpl.java 2010-08-31 17:59:20 UTC (rev 408) @@ -40,7 +40,7 @@ protected String _id; protected ITopicMap _tm; protected Construct _parent; - private Set<Locator> _iids; + protected Set<Locator> _iids; protected ConstructImpl(ITopicMap topicMap) { _tm = topicMap; Modified: tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java 2010-08-31 17:59:20 UTC (rev 408) @@ -163,13 +163,17 @@ return _iid2Construct.get(iid); } - public void close() { + public void clear() { _id2Construct.clear(); _iid2Construct.clear(); _sid2Topic.clear(); _slo2Topic.clear(); } + public void close() { + clear(); + } + private class TopicMapsConstructAddHandler implements IEventHandler { public void handleEvent(Event evt, IConstruct sender, Object oldValue, Object newValue) { @@ -294,4 +298,5 @@ } } } + } Modified: tinytim/trunk/src/main/java/org/tinytim/core/MemoryTopicMap.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/MemoryTopicMap.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/main/java/org/tinytim/core/MemoryTopicMap.java 2010-08-31 17:59:20 UTC (rev 408) @@ -388,6 +388,17 @@ return true; } + public void clear() { + if (_iids != null) { + _iids.clear(); + } + _reifier = null; + _topics.clear(); + _assocs.clear(); + ((IndexManager)_indexManager).clear(); + ((IdentityManager) _identityManager).clear(); + } + /* (non-Javadoc) * @see org.tmapi.core.TopicMap#remove() */ @@ -395,8 +406,7 @@ public void remove() { _sys.removeTopicMap(this); _sys = null; - _topics.clear(); - _assocs.clear(); + clear(); _indexManager.close(); _identityManager.close(); _eventMultiplier = null; Modified: tinytim/trunk/src/main/java/org/tinytim/index/IndexManager.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/index/IndexManager.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/main/java/org/tinytim/index/IndexManager.java 2010-08-31 17:59:20 UTC (rev 408) @@ -84,6 +84,10 @@ * @see org.tinytim.internal.api.IIndexManager#close() */ public void close() { + clear(); + } + + public void clear() { _typeInstanceIndex.clear(); _scopedIndex.clear(); _literalIndex.clear(); Deleted: tinytim/trunk/src/test/java/org/tinytim/core/AllTests.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/AllTests.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/test/java/org/tinytim/core/AllTests.java 2010-08-31 17:59:20 UTC (rev 408) @@ -1,59 +0,0 @@ -/* - * Copyright 2008 Lars Heuer (heuer[at]semagia.com) - * - * Licensed 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 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.tinytim.core; - -import org.tinytim.core.value.TestLiteral; -import org.tinytim.core.value.TestLiteralNormalizer; -import org.tinytim.core.value.TestLocatorImpl; -import org.tinytim.internal.utils.TestSignatureGenerator; -//import org.tinytim.mio.TestTinyTimMapInputHandler; -import org.tinytim.utils.TestDuplicateRemovalUtils; -import org.tinytim.utils.TestTopicUtils; - -import junit.framework.Test; -import junit.framework.TestSuite; - -/** - * Runs all tests. - * - * @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a> - * @version $Rev$ - $Date$ - */ -public class AllTests extends TestSuite { - - public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); - } - - public static Test suite() { - TestSuite suite = new TestSuite(); - suite.addTestSuite(TestDuplicateRemovalUtils.class); - suite.addTestSuite(TestLocatorImpl.class); - suite.addTestSuite(TestIConstruct.class); - suite.addTestSuite(TestScope.class); - suite.addTestSuite(TestLiteral.class); -//TODO: Add me -// suite.addTestSuite(TestTinyTimMapInputHandler.class); - suite.addTestSuite(TestLiteralNormalizer.class); - suite.addTestSuite(TestSignatureGenerator.class); - suite.addTest(TestTMAPICore.suite()); - suite.addTest(TestTMAPIIndex.suite()); - suite.addTestSuite(TestTopicMapSystemFactoryImpl.class); - suite.addTestSuite(TestTopicUtils.class); - return suite; - } - -} Deleted: tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPICore.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPICore.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPICore.java 2010-08-31 17:59:20 UTC (rev 408) @@ -1,37 +0,0 @@ -/* - * Copyright 2008 Lars Heuer (heuer[at]semagia.com) - * - * Licensed 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 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.tinytim.core; - -import org.tmapi.core.AllCoreTests; - -import junit.framework.Test; - -/** - * Runs the TMAPI core test suite against tinyTiM. - * - * @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a> - * @version $Rev$ - $Date$ - */ -public class TestTMAPICore extends AbstractTMAPITestSuite { - - public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); - } - - public static Test suite() { - return AllCoreTests.suite(); - } -} Deleted: tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPIIndex.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPIIndex.java 2010-08-31 17:04:46 UTC (rev 407) +++ tinytim/trunk/src/test/java/org/tinytim/core/TestTMAPIIndex.java 2010-08-31 17:59:20 UTC (rev 408) @@ -1,37 +0,0 @@ -/* - * Copyright 2008 Lars Heuer (heuer[at]semagia.com) - * - * Licensed 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 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.tinytim.core; - -import org.tmapi.index.AllIndexTests; - -import junit.framework.Test; - -/** - * Runs the TMAPI index test suite against tinyTiM. - * - * @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a> - * @version $Rev$ - $Date$ - */ -public class TestTMAPIIndex extends AbstractTMAPITestSuite { - - public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); - } - - public static Test suite() { - return AllIndexTests.suite(); - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-08-31 17:04:52
|
Revision: 407 http://tinytim.svn.sourceforge.net/tinytim/?rev=407&view=rev Author: lheuer Date: 2010-08-31 17:04:46 +0000 (Tue, 31 Aug 2010) Log Message: ----------- Removed unused method Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java Modified: tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java 2010-08-31 17:01:29 UTC (rev 406) +++ tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java 2010-08-31 17:04:46 UTC (rev 407) @@ -1170,7 +1170,6 @@ public Set<Locator> getItemIdentifiers() { return Collections.emptySet(); } public Association getParent() { return _parent; } public void removeItemIdentifier(Locator itemIdentifier) { } - public Association getAssociation() { return _parent; } public Topic getReifier() { return null; } public void remove() {} public void setPlayer(Topic arg0) {} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-08-31 17:01:36
|
Revision: 406 http://tinytim.svn.sourceforge.net/tinytim/?rev=406&view=rev Author: lheuer Date: 2010-08-31 17:01:29 +0000 (Tue, 31 Aug 2010) Log Message: ----------- Added test Modified Paths: -------------- tinytim/trunk/build.gradle Added Paths: ----------- tinytim/trunk/src/test/java/org/tinytim/mio/TestTinyTimMapInputHandler.java Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-08-31 16:37:49 UTC (rev 405) +++ tinytim/trunk/build.gradle 2010-08-31 17:01:29 UTC (rev 406) @@ -44,7 +44,9 @@ compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' testCompile 'junit:junit:4.8.1', - 'org.tmapi:tmapi-tests:2.0.3-SNAPSHOT' + 'org.tmapi:tmapi-tests:2.0.3-SNAPSHOT', + 'com.semagia.mio:mio-core-tests:0.9.6-SNAPSHOT', + 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' } eclipseClasspath.downloadSources = false Added: tinytim/trunk/src/test/java/org/tinytim/mio/TestTinyTimMapInputHandler.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/mio/TestTinyTimMapInputHandler.java (rev 0) +++ tinytim/trunk/src/test/java/org/tinytim/mio/TestTinyTimMapInputHandler.java 2010-08-31 17:01:29 UTC (rev 406) @@ -0,0 +1,124 @@ +/* + * Copyright 2008 - 2010 Lars Heuer (heuer[at]semagia.com) + * + * Licensed 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.tinytim.mio; + +import org.tmapi.core.Construct; +import org.tmapi.core.DatatypeAware; +import org.tmapi.core.Locator; +import org.tmapi.core.Name; +import org.tmapi.core.Reifiable; +import org.tmapi.core.Topic; +import org.tmapi.core.TopicMap; +import org.tmapi.core.TopicMapSystem; +import org.tmapi.core.TopicMapSystemFactory; +import org.tmapi.core.Typed; + +import com.semagia.mio.AbstractMapHandlerTest; +import com.semagia.mio.IMapHandler; + +/** + * Tests against the {@link org.tinytim.mio.TinyTimMapInputHandler}. + * + * @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a> + * @version $Rev$ - $Date$ + */ +public class TestTinyTimMapInputHandler extends AbstractMapHandlerTest { + + protected static final String _IRI = "http://www.semagia.com/tinyTiM/testTopicMap/"; + private TopicMapSystemFactory _sysFactory; + private TopicMapSystem _sys; + private TopicMap _tm; + private Locator _base; + + @Override + protected void setUp() throws Exception { + super.setUp(); + _sysFactory = TopicMapSystemFactory.newInstance(); + _sys = _sysFactory.newTopicMapSystem(); + _base = _sys.createLocator(_IRI); + _tm = _sys.createTopicMap(_base); + } + + @Override + protected IMapHandler makeMapHandler() { + return new TinyTimMapInputHandler(_tm); + } + + + @Override + protected Object getType(Object obj) { + return ((Typed) obj).getType(); + } + + @Override + protected int getAssociationSize() { + return _tm.getAssociations().size(); + } + + @Override + protected Object getConstructByItemIdentifier(String iid) { + return _tm.getConstructByItemIdentifier(_tm.createLocator(iid)); + } + + @Override + protected String getDatatypeAsString(Object obj) { + return ((DatatypeAware) obj).getDatatype().getReference(); + } + + @Override + protected Object getParent(Object obj) { + return ((Construct) obj).getParent(); + } + + @Override + protected Object getReified(Object obj) { + return ((Topic) obj).getReified(); + } + + @Override + protected Object getReifier(Object obj) { + return ((Reifiable) obj).getReifier(); + } + + @Override + protected Object getTopicBySubjectIdentifier(String sid) { + return _tm.getTopicBySubjectIdentifier(_tm.createLocator(sid)); + } + + @Override + protected Object getTopicBySubjectLocator(String slo) { + return _tm.getTopicBySubjectLocator(_tm.createLocator(slo)); + } + + @Override + protected Object getTopicMapReifier() { + return _tm.getReifier(); + } + + @Override + protected int getTopicSize() { + return _tm.getTopics().size(); + } + + @Override + protected String getValue(Object obj) { + if (obj instanceof DatatypeAware) { + return ((DatatypeAware) obj).getValue(); + } + return ((Name) obj).getValue(); + } + +} Property changes on: tinytim/trunk/src/test/java/org/tinytim/mio/TestTinyTimMapInputHandler.java ___________________________________________________________________ Added: svn:keywords + Date Rev This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-08-31 16:37:58
|
Revision: 405 http://tinytim.svn.sourceforge.net/tinytim/?rev=405&view=rev Author: lheuer Date: 2010-08-31 16:37:49 +0000 (Tue, 31 Aug 2010) Log Message: ----------- Improved build: TMAPI test are executed Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-08-03 19:34:33 UTC (rev 404) +++ tinytim/trunk/build.gradle 2010-08-31 16:37:49 UTC (rev 405) @@ -4,7 +4,7 @@ * - Download Gradle from <http://www.gradle.org/> * - Execute gradle build * - * TODO: Zip / Tar archives, run TMAPI.AllTests + * TODO: Zip / Tar archives * */ group = 'org.tinytim' @@ -14,7 +14,13 @@ apply plugin: 'java' apply plugin: 'osgi' apply plugin: 'maven' +apply plugin: 'eclipse' +defaultTasks 'clean', 'build' + +//TODO: Remove me once <http://jira.codehaus.org/browse/GRADLE-1079> is fixed +eclipseClasspath.variables = [:] + gradle.taskGraph.whenReady {taskGraph -> if (!taskGraph.hasTask(':release')) { version += '-SNAPSHOT' @@ -33,23 +39,33 @@ } dependencies { - compile group: 'org.tmapi', name: 'tmapi', version: '2.0.2' + compile 'org.tmapi:tmapi:2.0.2' compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' - testCompile group: 'junit', name: 'junit', version: '4.8.1' - testCompile group: 'org.tmapi', name: 'tmapi-tests', version: '2.0.3-SNAPSHOT' - - // Make Eclipse happy - testCompile 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' + testCompile 'junit:junit:4.8.1', + 'org.tmapi:tmapi-tests:2.0.3-SNAPSHOT' } +eclipseClasspath.downloadSources = false +eclipseClasspath.plusConfigurations.add configurations.compiledep + sourceSets { main { compileClasspath = sourceSets.main.compileClasspath + configurations.compiledep } } +test.doFirst { + ant { + unzip(src: configurations.testCompile.find { f -> f.name.startsWith('tmapi-test') }, + dest: "$buildDir/classes/test") { + exclude '**/TestTopicMapSystemFactory*' + exclude '**/TestRFC3986*' + } + } +} + jar { manifest { attributes 'Implementation-Title': 'tinyTiM', 'Implementation-Version': version This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-08-03 19:34:40
|
Revision: 404 http://tinytim.svn.sourceforge.net/tinytim/?rev=404&view=rev Author: lheuer Date: 2010-08-03 19:34:33 +0000 (Tue, 03 Aug 2010) Log Message: ----------- Updated build.gradle, removed Ant build Modified Paths: -------------- tinytim/trunk/build.gradle Removed Paths: ------------- tinytim/trunk/build.properties tinytim/trunk/build.xml tinytim/trunk/lib/ Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-08-03 17:55:38 UTC (rev 403) +++ tinytim/trunk/build.gradle 2010-08-03 19:34:33 UTC (rev 404) @@ -25,16 +25,31 @@ mavenCentral() mavenRepo urls: 'http://www.tmapi.org/maven-repository/' mavenRepo urls: 'http://www.tmapi.org/maven-repository/snapshots/' + mavenRepo urls: 'http://repository.semagia.com/snapshots/' } +configurations { + compiledep +} + dependencies { compile group: 'org.tmapi', name: 'tmapi', version: '2.0.2' - compile files('lib/semagia-mio-0.9.5.jar') - testCompile group: 'junit', name: 'junit', version: '4.+' + compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' + + testCompile group: 'junit', name: 'junit', version: '4.8.1' testCompile group: 'org.tmapi', name: 'tmapi-tests', version: '2.0.3-SNAPSHOT' + + // Make Eclipse happy + testCompile 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' } +sourceSets { + main { + compileClasspath = sourceSets.main.compileClasspath + configurations.compiledep + } +} + jar { manifest { attributes 'Implementation-Title': 'tinyTiM', 'Implementation-Version': version Deleted: tinytim/trunk/build.properties =================================================================== --- tinytim/trunk/build.properties 2010-08-03 17:55:38 UTC (rev 403) +++ tinytim/trunk/build.properties 2010-08-03 19:34:33 UTC (rev 404) @@ -1,4 +0,0 @@ -version=2.0.1 -version_suffix=-SNAPSHOT -debug=off -optimize=on Deleted: tinytim/trunk/build.xml =================================================================== --- tinytim/trunk/build.xml 2010-08-03 17:55:38 UTC (rev 403) +++ tinytim/trunk/build.xml 2010-08-03 19:34:33 UTC (rev 404) @@ -1,303 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<project name="tinyTiM" default="jar" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant"> - <property file="build.properties"/> - - <property name="dir.src" value="${basedir}/src/main/java"/> - <property name="dir.test" value="${basedir}/src/test/java"/> - <property name="dir.lib" value="${basedir}/lib"/> - <property name="dir.res" value="${basedir}/src/main/resources"/> - <property name="dir.coverage" value="${basedir}/coverage"/> - - <property name="lib.junit" value="${dir.lib}/junit-4.8.1.jar"/> - <property name="lib.mio" value="${dir.lib}/semagia-mio-0.9.5.jar"/> - <property name="lib.tmapi" value="${dir.lib}/tmapi-2.0.2.jar"/> - <property name="lib.tmapi.tests" value="${dir.lib}/tmapi-tests-2.0.2.jar"/> - <property name="lib.emma" value="${dir.lib}/emma.jar"/> - <property name="lib.emma.task" value="${dir.lib}/emma_ant.jar"/> - - <!-- directory that contains emma.jar and emma_ant.jar: --> - <property name="dir.emma" value="${dir.lib}" /> - - <!-- path element used by EMMA taskdef below: --> - <path id="emma.lib" > - <pathelement location="${dir.emma}/emma.jar" /> - <pathelement location="${dir.emma}/emma_ant.jar" /> - </path> - - <!-- this loads <emma> and <emmajava> custom tasks: --> - <taskdef resource="emma_ant.properties" classpathref="emma.lib" /> - - <target name="help"> - <echo message="--------------------"/> - <echo message="tinyTiM - Build file"/> - <echo message="--------------------"/> - <echo message=""/> - <echo message="Available targets:"/> - <echo message=""/> - <echo message=" jar Creates the jar"/> - <echo message=" testjar Creates the jar with the tests"/> - <echo message=" doc Creates the API documentation"/> - <echo message=" coverage Creates a coverage report"/> - <echo message=" release Creates the jar and a distributable file"/> - </target> - - <target name="init"> - <property name="dist.version" value="${version}${version_suffix}"/> - <property name="dist.name" value="tinytim-${dist.version}"/> - - <property name="tinytim.jar" value="${dist.name}.jar"/> - <property name="tinytim-test.jar" value="tinytim-tests-${dist.version}.jar"/> - <property name="tinytim.tar" value="${dist.name}.tar"/> - <property name="tinytim.tar.gz" value="${tinytim.tar}.gz"/> - <property name="tinytim.zip" value="${dist.name}.zip"/> - <property name="tinytim.pom" value="${dist.name}.pom"/> - <property name="tinytim-test.pom" value="tinytim-tests-${dist.version}.pom"/> - - <property name="dir.build" value="${basedir}/build"/> - <property name="dir.dist.root" value="${dir.build}/dist"/> - <property name="dir.dist" value="${dir.dist.root}/${dist.name}"/> - <property name="dir.build.classes" value="${dir.build}/classes"/> - <property name="dir.build.tests" value="${dir.build}/tests"/> - <property name="dir.javadocs" value="${dir.dist}/docs/api"/> - - <path id="run.classpath" > - <pathelement location="${dir.build.classes}" /> - <pathelement location="${dir.build.tests}" /> - <pathelement location="${lib.junit}"/> - <pathelement location="${lib.mio}"/> - <pathelement location="${lib.tmapi}"/> - <pathelement location="${lib.tmapi.tests}"/> - </path> - </target> - - <!-- =================================================================== --> - <!-- Clean targets --> - <!-- =================================================================== --> - <target name="clean" depends="init"> - <delete dir="${dir.build}"/> - <delete dir="${dir.javadocs}"/> - </target> - - <!-- =================================================================== --> - <!-- Prepares the build directory --> - <!-- =================================================================== --> - <target name="prepare" depends="init"> - <mkdir dir="${dir.build}"/> - <mkdir dir="${dir.build.classes}"/> - </target> - - <!-- =================================================================== --> - <!-- Coverage Tests --> - <!-- =================================================================== --> - <target name="coverage" depends="compile"> - <mkdir dir="${dir.build.tests}"/> - <javac destdir="${dir.build.tests}" - debug="${debug}" - optimize="${optimize}" - target="1.5" - includeantruntime="false"> - <classpath> - <pathelement location="${dir.build.classes}"/> - <pathelement location="${lib.junit}"/> - <pathelement location="${lib.mio}"/> - <pathelement location="${lib.tmapi}"/> - <pathelement location="${lib.tmapi.tests}"/> - </classpath> - <src path="${dir.test}"/> - </javac> - <mkdir dir="${dir.coverage}"/> - <emmajava libclasspathref="emma.lib" - sourcepath="${dir.src}" - fullmetadata="yes" - classname="org.tinytim.core.AllTests" - classpathref="run.classpath" - > - <filter includes="org.tinytim.*" excludes="org.tinytim.*Test*, org.tinytim.*$*" /> - <html outfile="${dir.coverage}/index.html" /> - </emmajava> - </target> - - <!-- =================================================================== --> - <!-- Tests --> - <!-- =================================================================== --> - <target name="test" depends="compile"> - <mkdir dir="${dir.build.tests}"/> - <javac destdir="${dir.build.tests}" - debug="${debug}" - optimize="${optimize}" - target="1.5" - includeantruntime="false"> - <classpath> - <pathelement location="${dir.build.classes}"/> - <pathelement location="${lib.junit}"/> - <pathelement location="${lib.mio}"/> - <pathelement location="${lib.tmapi}"/> - <pathelement location="${lib.tmapi.tests}"/> - </classpath> - <src path="${dir.test}"/> - </javac> - <junit printsummary="true" showoutput="false" - errorProperty="test.failed" failureProperty="test.failed" - fork="true"> - <classpath refid="run.classpath"/> - <formatter type="brief" usefile="false"/> - <test name="org.tinytim.core.AllTests"/> - </junit> - <fail message="Tests failed. Check test output." if="test.failed"/> - </target> - - <!-- =================================================================== --> - <!-- Compile source files --> - <!-- =================================================================== --> - <target name="compile" depends="clean, prepare"> - <replace file="${dir.src}/org/tinytim/Version.java" token="@RELEASE@" value="${dist.version}"/> - <javac destdir="${dir.build.classes}" - debug="${debug}" - target="1.5" - includeantruntime="false"> - <classpath> - <pathelement location="${lib.tmapi}"/> - <pathelement location="${lib.mio}"/> - </classpath> - <src path="${dir.src}"/> - </javac> - <replace file="${dir.src}/org/tinytim/Version.java" token="${dist.version}" value="@RELEASE@"/> - </target> - - <!-- =================================================================== --> - <!-- Creates the Java Docs --> - <!-- =================================================================== --> - <target name="doc" depends="init"> - <mkdir dir="${dir.javadocs}"/> - <javadoc destdir="${dir.javadocs}" - packagenames="org.tinytim.*" - author="true" - version="true" - use="true" - splitindex="true" - noindex="false" - link="http://www.tmapi.org/2.0/api/" - windowtitle="tinyTiM API v${dist.version}" - doctitle="tinyTiM API v${dist.version}"> - <fileset dir="${dir.src}"> - <exclude name="org/tinytim/core/**"/> - <exclude name="org/tinytim/index/**"/> - <exclude name="org/tinytim/internal/**"/> - <exclude name="org/tinytim/utils/Property.*"/> - </fileset> -<!-- - <doclet name="net.gleamynode.apiviz.APIviz" - path="${dir.lib}/apiviz-1.2.4.GA.jar"> - </doclet> ---> - </javadoc> - </target> - - <!-- =================================================================== --> - <!-- Creates the jar --> - <!-- =================================================================== --> - <target name="jar" depends="compile"> - <jar destfile="${dir.build}/${tinytim.jar}"> - <fileset dir="${dir.build.classes}"> - <include name="**/*.*"/> - </fileset> - <fileset dir="${dir.res}"> - <include name="**/*.*"/> - </fileset> - <manifest> - <attribute name="Implementation-Title" value="tinyTiM"/> - <attribute name="Implementation-Version" value="${dist.version}"/> - <attribute name="Implementation-URL" value="http://tinytim.sourceforge.net/"/> - <attribute name="Import-Package" value="org.tmapi.core,org.tmapi.index"/> - <attribute name="Export-Package" value="org.tinytim.mio,org.tinytim.voc"/> - <attribute name="Bundle-Name" value="tinyTiM"/> - <attribute name="Bundle-SymbolicName" value="org.tinytim;version=${dist.version}"/> - <attribute name="Bundle-Vendor" value="tinyTiM project"/> - <attribute name="Bundle-Version" value="${dist.version}"/> - </manifest> - </jar> - <checksum file="${dir.build}/${tinytim.jar}" algorithm="sha1"/> - <antcall target="pom"> - <param name="pom-file" value="${tinytim.pom}"/> - <param name="artifact" value="tinytim"/> - </antcall> - <checksum file="${dir.build}/${tinytim.pom}" algorithm="sha1"/> - </target> - - <!-- =================================================================== --> - <!-- Creates the test jar --> - <!-- =================================================================== --> - <target name="testjar" depends="compile, test"> - <jar destfile="${dir.build}/${tinytim-test.jar}"> - <fileset dir="${dir.build.tests}"> - <include name="**/*.*"/> - </fileset> - <manifest> - <attribute name="Implementation-Title" value="tinyTiM Tests"/> - <attribute name="Implementation-Version" value="${dist.version}"/> - <attribute name="Implementation-URL" value="http://tinytim.sourceforge.net/"/> - </manifest> - </jar> - <checksum file="${dir.build}/${tinytim-test.jar}" algorithm="sha1"/> - <antcall target="pom"> - <param name="pom-file" value="${tinytim-test.pom}"/> - <param name="artifact" value="tinytim-test"/> - </antcall> - <checksum file="${dir.build}/${tinytim-test.pom}" algorithm="sha1"/> - </target> - - <target name="pom"> - <echoxml file="${dir.build}/${pom-file}" namespacePolicy="elementsOnly"> - <project xmlns="http://maven.apache.org/POM/4.0.0"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.tmapi</groupId> - <artifactId>${artifact}</artifactId> - <version>${dist.version}</version> - </project> - </echoxml> - </target> - - <!-- =================================================================== --> - <!-- Prepares a distribution --> - <!-- =================================================================== --> - <target name="dist" depends="jar, testjar, doc"> - <mkdir dir="${dir.dist}"/> - - <copy todir="${dir.dist}" file="${dir.build}/${tinytim.jar}"/> - <copy todir="${dir.dist}" file="${dir.build}/${tinytim-test.jar}"/> - - <copy todir="${dir.dist}/src"> - <fileset dir="${dir.src}"/> - </copy> - <replace file="${dir.dist}/src/org/tinytim/Version.java" token="@RELEASE@" value="${dist.version}"/> - <copy todir="${dir.dist}/test"> - <fileset dir="${dir.test}"/> - </copy> - <copy todir="${dir.dist}/lib"> - <fileset dir="${dir.lib}"> - <include name="tmapi*"/> - <include name="junit*"/> - <include name="LICENSE.tmapi*"/> - <include name="LICENSE.junit*"/> - </fileset> - </copy> - - <copy todir="${dir.dist}" file="CHANGES.txt"/> - <copy todir="${dir.dist}" file="LICENSE.txt"/> - <copy todir="${dir.dist}" file="README.txt"/> - </target> - - <!-- =================================================================== --> - <!-- Creates the distribution files (.zip and .tar.gz) --> - <!-- --> - <!-- Won't create the distribution files if a test fails --> - <!-- =================================================================== --> - <target name="release" depends="jar, test, dist"> - <tar destfile="${dir.dist.root}/${tinytim.tar}" - basedir="${dir.dist.root}"/> - <gzip src="${dir.dist.root}/${tinytim.tar}" - destfile="${dir.build}/${tinytim.tar.gz}" /> - <delete file="${dir.dist.root}/${tinytim.tar}" /> - <zip destfile="${dir.build}/${tinytim.zip}" basedir="${dir.dist.root}"/> - </target> -</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-08-03 17:55:45
|
Revision: 403 http://tinytim.svn.sourceforge.net/tinytim/?rev=403&view=rev Author: lheuer Date: 2010-08-03 17:55:38 +0000 (Tue, 03 Aug 2010) Log Message: ----------- Neither the iids nor the reifier of a duplicate assoc was handled. Fixed. Thanks to Jan Schreiber for the bug report Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/utils/DuplicateRemovalUtils.java Modified: tinytim/trunk/src/main/java/org/tinytim/utils/DuplicateRemovalUtils.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/utils/DuplicateRemovalUtils.java 2010-07-28 15:28:53 UTC (rev 402) +++ tinytim/trunk/src/main/java/org/tinytim/utils/DuplicateRemovalUtils.java 2010-08-03 17:55:38 UTC (rev 403) @@ -77,6 +77,7 @@ int sig = SignatureGenerator.generateSignature(assoc); existing = sig2Assoc.get(sig); if (existing != null) { + MergeUtils.handleExistingConstruct(assoc, existing); MergeUtils.moveRoleCharacteristics(assoc, existing); assoc.remove(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-07-28 15:29:00
|
Revision: 402 http://tinytim.svn.sourceforge.net/tinytim/?rev=402&view=rev Author: lheuer Date: 2010-07-28 15:28:53 +0000 (Wed, 28 Jul 2010) Log Message: ----------- Fixed typo Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/mio/XMLC14NWriter.java Modified: tinytim/trunk/src/main/java/org/tinytim/mio/XMLC14NWriter.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/mio/XMLC14NWriter.java 2010-07-20 13:22:13 UTC (rev 401) +++ tinytim/trunk/src/main/java/org/tinytim/mio/XMLC14NWriter.java 2010-07-28 15:28:53 UTC (rev 402) @@ -24,7 +24,7 @@ import org.xml.sax.helpers.AttributesImpl; /** - * Simple SAX-alike XML writer that respects canonical XML to some extend. + * Simple SAX-alike XML writer that respects canonical XML to some extent. * <p> * This class is not meant to be a generic XML-C14N writer, but it is good * enough to support CXTM. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-07-20 13:22:20
|
Revision: 401 http://tinytim.svn.sourceforge.net/tinytim/?rev=401&view=rev Author: lheuer Date: 2010-07-20 13:22:13 +0000 (Tue, 20 Jul 2010) Log Message: ----------- Made some params final Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/core/TopicImpl.java Modified: tinytim/trunk/src/main/java/org/tinytim/core/TopicImpl.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/TopicImpl.java 2010-07-14 17:05:56 UTC (rev 400) +++ tinytim/trunk/src/main/java/org/tinytim/core/TopicImpl.java 2010-07-20 13:22:13 UTC (rev 401) @@ -401,7 +401,7 @@ * @see org.tmapi.core.Topic#getRolesPlayed(org.tmapi.core.Topic) */ @Override - public Set<Role> getRolesPlayed(Topic type) { + public Set<Role> getRolesPlayed(final Topic type) { Check.typeNotNull(type); if (_rolesPlayed == null) { return Collections.emptySet(); @@ -419,7 +419,7 @@ * @see org.tmapi.core.Topic#getRolesPlayed(org.tmapi.core.Topic, org.tmapi.core.Topic) */ @Override - public Set<Role> getRolesPlayed(Topic type, Topic assoc) { + public Set<Role> getRolesPlayed(final Topic type, final Topic assoc) { Check.typeNotNull(type); if (assoc == null) { throw new IllegalArgumentException("The association type must not be null"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-07-14 17:06:02
|
Revision: 400 http://tinytim.svn.sourceforge.net/tinytim/?rev=400&view=rev Author: lheuer Date: 2010-07-14 17:05:56 +0000 (Wed, 14 Jul 2010) Log Message: ----------- Fixed Loc impl. (whitespace handling was broken) Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java Modified: tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-07-13 16:38:24 UTC (rev 399) +++ tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-07-14 17:05:56 UTC (rev 400) @@ -63,7 +63,7 @@ catch (UnsupportedEncodingException ex) { throw new TMAPIRuntimeException(ex); } - _uri = URI.create(reference); + _uri = URI.create(_reference.replace(" ", "%20")); } private LocatorImpl(URI uri) { Modified: tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java 2010-07-13 16:38:24 UTC (rev 399) +++ tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java 2010-07-14 17:05:56 UTC (rev 400) @@ -29,13 +29,13 @@ public void testNormalization() { Locator loc = _tm.createLocator("http://www.example.org/test+me/"); assertEquals("http://www.example.org/test me/", loc.getReference()); - //assertEquals("http://www.example.org/test%20me/", loc.toExternalForm()); + assertEquals("http://www.example.org/test%20me/", loc.toExternalForm()); Locator loc2 = loc.resolve("./too"); assertEquals("http://www.example.org/test me/too", loc2.getReference()); - //assertEquals("http://www.example.org/test%20me/too", loc2.toExternalForm()); - //Locator loc3 = _tm.createLocator("http://www.example.org/test me/"); - //assertEquals("http://www.example.org/test me/", loc3.getReference()); - //assertEquals("http://www.example.org/test%20me/", loc3.toExternalForm()); + assertEquals("http://www.example.org/test%20me/too", loc2.toExternalForm()); + Locator loc3 = _tm.createLocator("http://www.example.org/test me/"); + assertEquals("http://www.example.org/test me/", loc3.getReference()); + assertEquals("http://www.example.org/test%20me/", loc3.toExternalForm()); } // public void testLowerCaseScheme() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-07-13 16:38:33
|
Revision: 399 http://tinytim.svn.sourceforge.net/tinytim/?rev=399&view=rev Author: lheuer Date: 2010-07-13 16:38:24 +0000 (Tue, 13 Jul 2010) Log Message: ----------- Fixed wording Modified Paths: -------------- tinytim/trunk/CHANGES.txt Modified: tinytim/trunk/CHANGES.txt =================================================================== --- tinytim/trunk/CHANGES.txt 2010-07-13 16:29:32 UTC (rev 398) +++ tinytim/trunk/CHANGES.txt 2010-07-13 16:38:24 UTC (rev 399) @@ -6,8 +6,8 @@ ------------------ * OSGi bundle exports the .voc package (contributed by Hannes Niederhausen) -* Removed String-Interning for Object Ids - (caused memory heap problems and fixes a bug reported by Uta Schulze) +* Removed String-Interning for object ids + (caused heap memory problems and fixes a bug reported by Uta Schulze) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-07-13 16:29:39
|
Revision: 398 http://tinytim.svn.sourceforge.net/tinytim/?rev=398&view=rev Author: lheuer Date: 2010-07-13 16:29:32 +0000 (Tue, 13 Jul 2010) Log Message: ----------- Removed uncertain test cases Modified Paths: -------------- tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java Modified: tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java =================================================================== --- tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java 2010-07-13 16:22:41 UTC (rev 397) +++ tinytim/trunk/src/test/java/org/tinytim/core/value/TestLocatorImpl.java 2010-07-13 16:29:32 UTC (rev 398) @@ -29,13 +29,13 @@ public void testNormalization() { Locator loc = _tm.createLocator("http://www.example.org/test+me/"); assertEquals("http://www.example.org/test me/", loc.getReference()); - assertEquals("http://www.example.org/test%20me/", loc.toExternalForm()); + //assertEquals("http://www.example.org/test%20me/", loc.toExternalForm()); Locator loc2 = loc.resolve("./too"); assertEquals("http://www.example.org/test me/too", loc2.getReference()); - assertEquals("http://www.example.org/test%20me/too", loc2.toExternalForm()); - Locator loc3 = _tm.createLocator("http://www.example.org/test me/"); - assertEquals("http://www.example.org/test me/", loc3.getReference()); - assertEquals("http://www.example.org/test%20me/", loc3.toExternalForm()); + //assertEquals("http://www.example.org/test%20me/too", loc2.toExternalForm()); + //Locator loc3 = _tm.createLocator("http://www.example.org/test me/"); + //assertEquals("http://www.example.org/test me/", loc3.getReference()); + //assertEquals("http://www.example.org/test%20me/", loc3.toExternalForm()); } // public void testLowerCaseScheme() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-07-13 16:22:48
|
Revision: 397 http://tinytim.svn.sourceforge.net/tinytim/?rev=397&view=rev Author: lheuer Date: 2010-07-13 16:22:41 +0000 (Tue, 13 Jul 2010) Log Message: ----------- Updated CHANGES.txt Modified Paths: -------------- tinytim/trunk/CHANGES.txt Modified: tinytim/trunk/CHANGES.txt =================================================================== --- tinytim/trunk/CHANGES.txt 2010-06-03 18:39:23 UTC (rev 396) +++ tinytim/trunk/CHANGES.txt 2010-07-13 16:22:41 UTC (rev 397) @@ -6,6 +6,9 @@ ------------------ * OSGi bundle exports the .voc package (contributed by Hannes Niederhausen) +* Removed String-Interning for Object Ids + (caused memory heap problems and fixes a bug reported by Uta Schulze) + 2.0.0 (2010-03-19) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-06-03 18:39:30
|
Revision: 396 http://tinytim.svn.sourceforge.net/tinytim/?rev=396&view=rev Author: lheuer Date: 2010-06-03 18:39:23 +0000 (Thu, 03 Jun 2010) Log Message: ----------- Avoid out of memory errors due to the usage of interned strings Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java Modified: tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java 2010-05-01 10:43:16 UTC (rev 395) +++ tinytim/trunk/src/main/java/org/tinytim/core/IdentityManager.java 2010-06-03 18:39:23 UTC (rev 396) @@ -50,7 +50,7 @@ private final Map<String, IConstruct> _id2Construct; IdentityManager(MemoryTopicMap tm) { - _id2Construct = CollectionFactory.createIdentityMap(IConstant.IDENTITY_ID2CONSTRUCT_SIZE); + _id2Construct = CollectionFactory.createMap(IConstant.IDENTITY_ID2CONSTRUCT_SIZE); _sid2Topic = CollectionFactory.createIdentityMap(IConstant.IDENTITY_SID2TOPIC_SIZE); _slo2Topic = CollectionFactory.createIdentityMap(IConstant.IDENTITY_SLO2TOPIC_SIZE); _iid2Construct = CollectionFactory.createIdentityMap(IConstant.IDENTITY_IID2CONSTRUCT_SIZE); @@ -107,7 +107,7 @@ private void _register(IConstruct construct) { ConstructImpl c = (ConstructImpl) construct; if (c._id == null) { - c._id = String.valueOf(IdGenerator.nextId()).intern(); + c._id = String.valueOf(IdGenerator.nextId()); } if (!_id2Construct.containsKey(c._id)) { _id2Construct.put(c._id, c); Modified: tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-05-01 10:43:16 UTC (rev 395) +++ tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-06-03 18:39:23 UTC (rev 396) @@ -63,7 +63,7 @@ catch (UnsupportedEncodingException ex) { throw new TMAPIRuntimeException(ex); } - _uri = URI.create(_reference.replace(" ", "%20")); + _uri = URI.create(reference); } private LocatorImpl(URI uri) { @@ -79,6 +79,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#getDatatype() */ + @Override public Locator getDatatype() { return XSD.ANY_URI; } @@ -86,6 +87,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#getValue() */ + @Override public String getValue() { return _reference; } @@ -93,6 +95,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#decimalValue() */ + @Override public BigDecimal decimalValue() { throw new NumberFormatException(); } @@ -100,6 +103,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#floatValue() */ + @Override public float floatValue() { throw new NumberFormatException(); } @@ -107,6 +111,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#integerValue() */ + @Override public BigInteger integerValue() { throw new NumberFormatException(); } @@ -114,6 +119,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#intValue() */ + @Override public int intValue() { throw new NumberFormatException(); } @@ -121,6 +127,7 @@ /* (non-Javadoc) * @see org.tinytim.internal.api.ILiteral#longValue() */ + @Override public long longValue() { throw new NumberFormatException(); } @@ -128,6 +135,7 @@ /* (non-Javadoc) * @see org.tmapi.core.Locator#getReference() */ + @Override public String getReference() { return _reference; } @@ -135,13 +143,18 @@ /* (non-Javadoc) * @see org.tmapi.core.Locator#resolve(java.lang.String) */ + @Override public Locator resolve(String reference) { + if (_EMPTY.equals(reference)) { + return this; + } return create(_uri.resolve(reference)); } /* (non-Javadoc) * @see org.tmapi.core.Locator#toExternalForm() */ + @Override public String toExternalForm() { return _uri.toASCIIString(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-05-01 10:43:22
|
Revision: 395 http://tinytim.svn.sourceforge.net/tinytim/?rev=395&view=rev Author: lheuer Date: 2010-05-01 10:43:16 +0000 (Sat, 01 May 2010) Log Message: ----------- Avoid index out of range error Modified Paths: -------------- tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java Modified: tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java =================================================================== --- tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java 2010-04-02 12:24:43 UTC (rev 394) +++ tinytim/trunk/src/main/java/org/tinytim/mio/CXTMTopicMapWriter.java 2010-05-01 10:43:16 UTC (rev 395) @@ -648,7 +648,7 @@ normLoc = normLoc.substring(slashPos); } } - if (normLoc.charAt(0) == '/') { + if (normLoc.length() > 0 && normLoc.charAt(0) == '/') { normLoc = normLoc.substring(1); } _locator2Norm.put(locator, normLoc); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-04-02 12:24:50
|
Revision: 394 http://tinytim.svn.sourceforge.net/tinytim/?rev=394&view=rev Author: lheuer Date: 2010-04-02 12:24:43 +0000 (Fri, 02 Apr 2010) Log Message: ----------- Next build update (won't be the last) Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-04-02 10:06:48 UTC (rev 393) +++ tinytim/trunk/build.gradle 2010-04-02 12:24:43 UTC (rev 394) @@ -44,8 +44,14 @@ } } +task sourcesJar(type: Jar, dependsOn:classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + artifacts { archives jar + archives sourcesJar } uploadArchives { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lh...@us...> - 2010-04-02 10:06:54
|
Revision: 393 http://tinytim.svn.sourceforge.net/tinytim/?rev=393&view=rev Author: lheuer Date: 2010-04-02 10:06:48 +0000 (Fri, 02 Apr 2010) Log Message: ----------- Updated Gradle build Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-03-30 08:51:27 UTC (rev 392) +++ tinytim/trunk/build.gradle 2010-04-02 10:06:48 UTC (rev 393) @@ -1,13 +1,19 @@ -// *Experimental* build file for Gradle *0.9* (preview) -// DO NOT use it. Don't even think about it! - +/* + * Gradle 0.9 build file. + * + * - Download Gradle from <http://www.gradle.org/> + * - Execute gradle build + * + * TODO: Zip / Tar archives, run TMAPI.AllTests + * + */ group = 'org.tinytim' -archivesBaseName = 'tinytim' version = '2.0.1' bundleVersion = version apply plugin: 'java' apply plugin: 'osgi' +apply plugin: 'maven' gradle.taskGraph.whenReady {taskGraph -> if (!taskGraph.hasTask(':release')) { @@ -34,10 +40,16 @@ attributes 'Implementation-Title': 'tinyTiM', 'Implementation-Version': version instruction 'Bundle-Description', 'tinyTiM - A tiny Topic Maps engine' instruction 'Import-Package', 'org.tmapi.core, org.tmapi.index' - instruction 'Export-Package', 'org.tinytim.mio, org.tinytim.voc' + instruction 'Export-Package', 'org.tinytim.mio, org.tinytim.voc, org.tinytim.utils' } } -test { - include '**/AllTests.class' -} \ No newline at end of file +artifacts { + archives jar +} + +uploadArchives { + repositories.mavenDeployer { + repository(url: "file://$buildDir/maven-repo/") + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |