Main /
Osgi2-0In November 2014, Erwin De Ley worked on getting the ptII repo to be more OSGi complaint. ResourcesEclipse Instructions
ProblemsStringUtilities.java could not be readThe problem was
Solution:
"PT_LOC" is "/C:/data/build-folders/ptolemy"
I'm not sure if I got the above right, but I ended up editing the .project files. ptolemy.moml package.html not foundSolution: Open up the link-source and delete it, it is not necessary. Do the same with README.txt in that directory. Change on Nov 27thPT_LOC variable has been removed from the individual .project files. Continuing along
Running the test
java.lang.AssertionError: Wrong iteration count for actor const expected:<1> but was:<0> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.ptolemy.testsupport.ModelExecutionAssertion.assertActorIterationStatistics(ModelExecutionAssertion.java:404) at org.ptolemy.testsupport.ModelExecutionAssertion.assertModel(ModelExecutionAssertion.java:120) at org.ptolemy.core.test.ModelExecutionTest.testModelExecution1(ModelExecutionTest.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:131) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) This is caused by the relience of the flow execution test assertions on using ptolemy DebugListeners. But it seems that currently ptolemy doesn't consistently generate events (cfr also JavaDoc of the ModelExecutionTest). After the release of ptII v10, we can check on how to get this working.
Licenses$PTII/ptolemy/actor/gui/GenerateCopyrights.java has a generateHTML(Configuration) method that will use reflection to look for classes listed in GenerateCopyrights that have licenses.
Running the tests in What files are in the sources uses in the branch?cd ~/src/ https://repo.eecs.berkeley.edu/svn-anon/projects/eal/ptII/branches/osgi-2-0 cd osgi-2-0 grep PT_LOC */.project | awk -F : '{print $2}' | sed 's@<locationURI>PT_LOC/\([^<]*\)</locationURI>@\1@' | awk '{print $1}' | \ sort 677 files, 237k lines |