From: Alexander Kriegisch Date: Wed, 17 Mar 2021 01:12:46 +0000 (+0700) Subject: Add POM to download libs (WIP) which previously were committed to SCM X-Git-Tag: V1_9_7_M2~21^2~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=464b8c1987f362ba3f6350e267c03a77955ac09c;p=aspectj.git Add POM to download libs (WIP) which previously were committed to SCM Signed-off-by: Alexander Kriegisch --- diff --git a/libx/pom.xml b/libx/pom.xml new file mode 100644 index 000000000..cc7a9f997 --- /dev/null +++ b/libx/pom.xml @@ -0,0 +1,162 @@ + + + 4.0.0 + + + org.aspectj + aspectj-parent + 1.9.7.BUILD-SNAPSHOT + + + libx + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.2 + + + copy + validate + + copy + + + + + + ant + ant + 1.6.5 + jar + false + ant + ant.jar + + + + ant + ant + 1.6.5 + jar + sources + false + ant + ant-src.zip + + + + + + + com.googlecode.jarjar + jarjar + 1.3 + jar + false + jarjar + jarjar-1.3.jar + + + + + jdiff + jdiff + 1.0.9 + jar + false + jdiff + jdiff.jar + + + + junit + junit + 3.8.1 + jar + false + junit + junit.jar + + + + junit + junit + 3.8.1 + jar + sources + false + junit + junit-src.zip + + + + + + + saxon + saxon + 6.5.3 + jar + false + saxon + saxon.jar + + + + regexp + regexp + 1.2 + jar + false + regexp + jakarta-regexp-1.2.jar + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 14952e6a7..06e84edd3 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,7 @@ build run-all-junit-tests docs + libx aspectjrt diff --git a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java index 68e14ec2e..05a8cafa1 100644 --- a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java +++ b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java @@ -1,13 +1,13 @@ /* ******************************************************************* * Copyright (c) 2004 IBM Corporation - * All rights reserved. - * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Adrian Colyer, + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Adrian Colyer, * ******************************************************************/ package org.aspectj.testing; @@ -68,17 +68,17 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { public XMLBasedAjcTestCase() { } - + /** * You must define a suite() method in subclasses, and return the result of calling this method. (Don't you hate static methods * in programming models). For example: - * + * *
 	 * public static Test suite() {
 	 * 	 return XMLBasedAjcTestCase.loadSuite(MyTestCaseClass.class);
 	 * }
 	 * 
- * + * * @param testCaseClass * @return */ @@ -224,10 +224,15 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { } } - /* + /** * The rules for parsing a suite spec file. The Digester using bean properties to match attributes in the XML document to * properties in the associated classes, so this simple implementation should be very easy to maintain and extend should you * ever need to. + * + * See also + * this introduction (archived for version 2.1). AspectJ uses version 1.3, though. + * + * @return a newly created XML digester */ protected Digester getDigester() { Digester digester = new Digester(); @@ -279,7 +284,7 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { /* * (non-Javadoc) - * + * * @see org.aspectj.tools.ajc.AjcTestCase#setUp() */ protected void setUp() throws Exception { @@ -358,7 +363,7 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { ClassPath cp = new ClassPath(cpentry + File.pathSeparator + System.getProperty("java.class.path")); return SyntheticRepository.getInstance(cp); } - + protected byte[] loadFileAsByteArray(File f) { try { byte[] bs = new byte[100000]; @@ -383,7 +388,7 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { protected Method getMethodStartsWith(JavaClass jc, String prefix) { return getMethodStartsWith(jc,prefix,1); } - + protected Attribute getAttributeStartsWith(Attribute[] attributes, String prefix) { StringBuilder buf = new StringBuilder(); for (Attribute a: attributes) { @@ -395,7 +400,7 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { fail("Failed to find '"+prefix+"' in attributes:\n"+buf.toString()); return null; } - + protected Method getMethodStartsWith(JavaClass jc, String prefix, int whichone) { Method[] meths = jc.getMethods(); for (Method method : meths) { @@ -519,5 +524,5 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { return null; } - + }