Hi Chris, our unit tests use slf over log4j, and to do this, they need a valid log4j configuration. This is why we add the log4j configuration during the testResources build phase. If we don't add it this way, each and every module would need it's own log4j configuration file.
Tobias On 12.10.2011, at 20:51, Christopher Brooks wrote: > Hi, > > I followed instructions here to setup a new environment: > > http://opencast.jira.com/wiki/display/MH/Eclipse+IDE > > I don't use the mvn plugin for eclipse. After setting the m2 repo > variable things look ok, but there are still errors related to log4j. > The Java build path problems output are lines like (one for each > module): > > Project 'matterhorn-admin-ui' is missing required source folder: > '/opt/matterhorn/matterhorn_trunk/docs/log4j' > matterhorn-admin-ui > > Not sure why log4j is being looked for in our docs folder. > > Our main POM for some reason seems to be referencing this location for > log4j. Why? > > <defaultGoal>install</defaultGoal> > <testResources> > <!-- Add a log4j configuration file to the test resources --> > <testResource> > <directory>${matterhorn.basedir}/docs/log4j</directory> > <includes> > <include>log4j.properties</include> > </includes> > </testResource> > > Chris > -- > Christopher Brooks, BSc, MSc > ARIES Laboratory, University of Saskatchewan > > Web: http://www.cs.usask.ca/~cab938 > Phone: 1.306.966.1442 > Mail: Advanced Research in Intelligent Educational Systems Laboratory > Department of Computer Science > University of Saskatchewan > 176 Thorvaldson Building > 110 Science Place > Saskatoon, SK > S7N 5C9 > _______________________________________________ > Matterhorn mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn > > > To unsubscribe please email > [email protected] > _______________________________________________ _______________________________________________ Matterhorn mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn To unsubscribe please email [email protected] _______________________________________________
