BUG-1170: removed hardcoding of test build directory.
[yangtools.git] / yang / yang-maven-plugin-it / src / test / resources / test-parent / GenerateTest1 / pom.xml
similarity index 70%
rename from yang/yang-maven-plugin-it/src/test/resources/GenerateTest1/pom.xml
rename to yang/yang-maven-plugin-it/src/test/resources/test-parent/GenerateTest1/pom.xml
index fa91fc0f6b51cc9bb4f2b9fdac12ede6eff545ca..cd7be965d193bb026422989970260e4dc81d5068 100644 (file)
@@ -1,19 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- Copyright (c) 2013 Cisco Systems, Inc. and others.  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
--->
+<!-- Copyright (c) 2013 Cisco Systems, Inc. and others. 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 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
-    <groupId>org.opendaylight.yangtools</groupId>
+    <parent>
+        <groupId>org.opendaylight.yangtools</groupId>
+        <artifactId>test-parent</artifactId>
+        <version>1.0</version>
+    </parent>
+
     <artifactId>generator-test1</artifactId>
-    <version>0.5-SNAPSHOT</version>
+
+    <properties>
+        <target.dir>${project.build.directory}</target.dir>
+    </properties>
 
     <build>
         <plugins>
                                     <codeGeneratorClass>
                                         org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
                                     </codeGeneratorClass>
-                                    <outputBaseDir>       
-                                            target/GenerateTest1                                
+                                    <outputBaseDir>
+                                        target/GenerateTest1
                                     </outputBaseDir>
                                 </generator>
                             </codeGenerators>
                         </configuration>
                     </execution>
                 </executions>
-
                 <dependencies>
                     <dependency>
                         <groupId>org.opendaylight.yangtools</groupId>
                     </dependency>
                 </dependencies>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>properties-maven-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
 </project>