[ http://jira.andromda.org/browse/OCL-13?page=history ] Work on OCL-13 started by Wouter Zoons
> TranslationTestProcessor should omit dirs "CVS" and ".svn" > ---------------------------------------------------------- > > Key: OCL-13 > URL: http://jira.andromda.org/browse/OCL-13 > Project: OCL Translation > Type: Bug > Versions: 3.0RC2 > Reporter: Mike RĂ¼ger > Assignee: Wouter Zoons > Priority: Minor > > Hi, > i'm using subversion for andromda development. subversion has a .svn > directory for its meta-data in each directory. This directory has a copy of > all unmodified repository files. > TranslationTestProcessor recursivly processes all subdirs incl. the .svn-dir > and thus fails. > Below you will find the patch for class TranslationTestProcessor. Please > commit it to the official release. > Thank you, > mike > translation-library:test-bootstrap: > [echo] +-------------------------------------------+ > [echo] | T E S T I N G T R A N S L A T I O N | > [echo] +-------------------------------------------+ > [...] > test:single: > [junit] Running > org.andromda.translation.ocl.testsuite.TranslationTestProcessor > [junit] INFO [AndroMDA] -- discovering plugins -- > [junit] INFO [AndroMDA] found translation-library --> 'validation' > [junit] INFO [AndroMDA] -- discovering metafacades -- > [junit] INFO [AndroMDA] found shared metafacades --> 'uml-1.4' - adding > to 'default' namespace > [junit] INFO [TranslationTestDiscoverer] found translation test --> > 'file:/d:/Projekte/andromda-svn/vendor/andromda-all/translation-libraries/ocl/andromda-validation/src/test/translations/validation/.svn/prop-base/TranslationTest-Java.xml.svn-base' > [junit] ERROR [Digester] Parse Fatal Error at line 1 column 1: Content is > not allowed in prolog. > [junit] org.xml.sax.SAXParseException: Content is not allowed in prolog. > [junit] at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > [junit] at > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) > [junit] at > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > [junit] at > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > [...] > --snip-- > Index: > translation-libraries/ocl/testsuite/src/java/org/andromda/translation/ocl/testsuite/TranslationTestDiscoverer.java > =================================================================== > --- > translation-libraries/ocl/testsuite/src/java/org/andromda/translation/ocl/testsuite/TranslationTestDiscoverer.java > (Revision 27) > +++ > translation-libraries/ocl/testsuite/src/java/org/andromda/translation/ocl/testsuite/TranslationTestDiscoverer.java > (Arbeitskopie) > @@ -20,6 +20,8 @@ > private static Logger logger = > Logger.getLogger(TranslationTestDiscoverer.class); > private static final String CURRENT_DIRECTORY = "current.directory"; > + private static final String IGNORE_DIRECTORY_CVS = "CVS"; > + private static final String IGNORE_DIRECTORY_SVN = ".svn"; > /** > * If this is specified as a system property, then the TraceTranslator > will run instead of the specified translator. > @@ -109,7 +111,9 @@ > test.setUri(testUrl); > this.translationTests.put(test.getTranslation(), > test); > } > - else if (file.isDirectory()) > + else if (file.isDirectory() && > + ! IGNORE_DIRECTORY_CVS.equals(file.getName()) && > + ! IGNORE_DIRECTORY_SVN.equals(file.getName())) > { > this.discoverTests(file); > } > -- snip --- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click