--- /dev/null
+/*\r
+ * \r
+ * Copyright 2002-2004 The Ant-Contrib project\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package net.sf.antcontrib.cpptasks;\r
+import java.io.File;\r
+\r
+import net.sf.antcontrib.cpptasks.types.ConditionalFileSet;\r
+\r
+import org.apache.tools.ant.BuildException;\r
+/**\r
+ * Specifies files that should not be compiled using precompiled headers.\r
+ * \r
+ * @author Curt Arnold\r
+ */\r
+public final class PrecompileExceptDef {\r
+ private ConditionalFileSet localSet = null;\r
+ /**\r
+ * Collection of <fileset>contained by definition\r
+ */\r
+ private PrecompileDef owner;\r
+ /**\r
+ * Constructor\r
+ * \r
+ */\r
+ public PrecompileExceptDef(PrecompileDef owner) {\r
+ this.owner = owner;\r
+ }\r
+ /**\r
+ * Adds filesets that specify files that should not be processed using\r
+ * precompiled headers.\r
+ * \r
+ * @param exceptSet\r
+ * FileSet specify files that should not be processed with\r
+ * precompiled headers enabled.\r
+ */\r
+ public void addFileset(ConditionalFileSet exceptSet) {\r
+ owner.appendExceptFileSet(exceptSet);\r
+ }\r
+ public void execute() throws org.apache.tools.ant.BuildException {\r
+ throw new org.apache.tools.ant.BuildException(\r
+ "Not an actual task, but looks like one for documentation purposes");\r
+ }\r
+ /**\r
+ * Sets the base-directory\r
+ */\r
+ public void setDir(File dir) throws BuildException {\r
+ if (localSet == null) {\r
+ localSet = new ConditionalFileSet();\r
+ owner.appendExceptFileSet(localSet);\r
+ }\r
+ localSet.setDir(dir);\r
+ }\r
+ /**\r
+ * Comma or space separated list of file patterns that should not be\r
+ * compiled using precompiled headers.\r
+ * \r
+ * @param includes\r
+ * the string containing the include patterns\r
+ */\r
+ public void setIncludes(String includes) {\r
+ if (localSet == null) {\r
+ localSet = new ConditionalFileSet();\r
+ owner.appendExceptFileSet(localSet);\r
+ }\r
+ localSet.setIncludes(includes);\r
+ }\r
+}\r