/********************************************************************** * Copyright (c) 2005-2009 ant4eclipse project team. * * 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: * Nils Hartmann, Daniel Kasmeroglu, Gerd Wuetherich **********************************************************************/ package org.ant4eclipse.ant.jdt; import org.ant4eclipse.ant.jdt.base.AbstractJdtClassPathTest; import org.ant4eclipse.testframework.JdtProjectBuilder; import java.io.File; /** * <p> * </p> * * @author Gerd Wütherich (gerd@gerd-wuetherich.de) */ public class ClasspathContainersTest extends AbstractJdtClassPathTest { @Override public void setUp() throws Exception { super.setUp(); // set up the build file setupBuildFile("classpathContainers.xml"); } /** * <p> * </p> * * @throws Exception */ public void testClasspathContainers() throws Exception { // create simple project 'project' with a source directory 'src' and a output directory 'bin' JdtProjectBuilder.getPreConfiguredJdtBuilder("project").withContainerClasspathEntry("testContainer").createIn( getTestWorkspaceDirectory()); // set the properties getProject().setProperty("projectName", "project"); // execute target String classpath = executeTestTarget("project", true, true); assertClasspath(classpath, new File("project/bin"), new File(getTestWorkspaceDirectory(), "project/testFile.txt")); } }