Commits

Anonymous committed 4ba47c3 Draft

created repository and added Dummy

  • Participants

Comments (0)

Files changed (9)

+syntax: glob
+.classpath
+.project
+.settings
+target
+doc
+output
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>cml</groupId>
+		<artifactId>declaratron-top</artifactId>
+		<version>0.1-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>declaratron-compute</artifactId>
+	<packaging>jar</packaging>
+	<name>declaratron-compute</name>
+
+	<dependencies>
+
+
+		<!-- the other declaratrons, core is essential, others are optional -->
+		<dependency>
+			<groupId>cml</groupId>
+			<artifactId>declaratron-core</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>cml</groupId>
+			<artifactId>declaratron-chem</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>cml</groupId>
+			<artifactId>declaratron-graphics</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+
+	</dependencies>
+
+
+</project>
+
+

src/main/java/org/xmlcml/declaratron/compute/Dummy.java

+package org.xmlcml.declaratron.compute;
+
+import org.xmlcml.cml.element.CMLMolecule;
+import org.xmlcml.cml.graphics.SVGSVG;
+
+/** makes sure imports are resolved
+ * 
+ * @author pm286
+ *
+ */
+public class Dummy {
+
+	public Dummy() {
+		
+	}
+	
+	void runDummy() {
+		SVGSVG svg = new SVGSVG();
+		svg.debug("dummy");
+		CMLMolecule molecule = new CMLMolecule();
+		molecule.debug("dummy");
+	}
+	
+	public static void main(String[] args) {
+	}
+
+}

src/main/resources/META-INF/declaratron

+org.xmlcml.cml.declaratron.chem.amber.AmberConverters

src/main/resources/log4j.properties

+log4j.rootLogger=DEBUG, A1
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
+log4j.logger.uk.ac.cam=DEBUG
+
+log4j.logger.org.xmlcml.cml.converters.marker = INFO

src/main/resources/org/xmlcml/declaratron/compute/namespaceList.xml

+<computation xmlns="http://www.declaratron.org">
+  <molecule xmlns="http://www.xml-cml.org/schema"/>
+</computation>

src/test/java/org/xmlcml/declaratron/compute/DummyTest.java

+package org.xmlcml.declaratron.compute;
+
+import org.junit.Test;
+
+public class DummyTest {
+
+	@Test
+	public void testDummy() {
+		Dummy dummy = new Dummy();
+		dummy.runDummy();
+	}
+}

src/test/java/org/xmlcml/declaratron/compute/Fixtures.java

+package org.xmlcml.declaratron.compute;
+
+public class Fixtures {
+	public static final String CHEM = "org/xmlcml/declaratron/chem/";
+
+}

src/test/resources/org/xmlcml/declaratron/compute/compute0.xml

+<computation xmlns="http://www.declaratron.org">
+  <molecule xmlns="http://www.xml-cml.org/schema"/>
+</computation>