| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2011, Red Hat, Inc. |
| 4 | |
| 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | --> |
| 10 | <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
| 11 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 12 | <modelVersion>4.0.0</modelVersion> |
| 13 | |
| 14 | <parent> |
| 15 | <artifactId>org.eclipse.tracecompass</artifactId> |
| 16 | <groupId>org.eclipse.tracecompass</groupId> |
| 17 | <version>0.1.0-SNAPSHOT</version> |
| 18 | </parent> |
| 19 | |
| 20 | <name>Trace Compass CTF Parser Plug-in</name> |
| 21 | <groupId>org.eclipse.tracecompass</groupId> |
| 22 | <artifactId>org.eclipse.tracecompass.ctf.parser</artifactId> |
| 23 | <version>0.1.0-SNAPSHOT</version> |
| 24 | <packaging>eclipse-plugin</packaging> |
| 25 | |
| 26 | <build> |
| 27 | <plugins> |
| 28 | <plugin> |
| 29 | <groupId>org.eclipse.tycho</groupId> |
| 30 | <artifactId>tycho-source-plugin</artifactId> |
| 31 | </plugin> |
| 32 | <!-- Do not delete the existing .java parser files in target/ --> |
| 33 | <plugin> |
| 34 | <artifactId>maven-clean-plugin</artifactId> |
| 35 | <version>2.5</version> |
| 36 | <configuration> |
| 37 | <excludeDefaultDirectories>true</excludeDefaultDirectories> |
| 38 | <filesets> |
| 39 | <fileset> |
| 40 | <directory>target</directory> |
| 41 | <followSymlinks>false</followSymlinks> |
| 42 | <includes> |
| 43 | <include>*/**</include> |
| 44 | </includes> |
| 45 | <excludes> |
| 46 | <exclude>generated-sources/antlr3/org/eclipse/tracecompass/ctf/parser/CTFLexer.java</exclude> |
| 47 | <exclude>generated-sources/antlr3/org/eclipse/tracecompass/ctf/parser/CTFParser.java</exclude> |
| 48 | </excludes> |
| 49 | </fileset> |
| 50 | </filesets> |
| 51 | </configuration> |
| 52 | </plugin> |
| 53 | </plugins> |
| 54 | </build> |
| 55 | |
| 56 | <!-- Only rebuild the CTF grammar files if the ctf-grammar profile is active --> |
| 57 | <profiles> |
| 58 | <profile> |
| 59 | <id>ctf-grammar</id> |
| 60 | <build> |
| 61 | <plugins> |
| 62 | <plugin> |
| 63 | <groupId>org.antlr</groupId> |
| 64 | <artifactId>antlr3-maven-plugin</artifactId> |
| 65 | <version>3.5.2</version> |
| 66 | <executions> |
| 67 | <execution> |
| 68 | <goals> |
| 69 | <goal>antlr</goal> |
| 70 | </goals> |
| 71 | </execution> |
| 72 | </executions> |
| 73 | <dependencies> |
| 74 | <dependency> |
| 75 | <groupId>org.antlr</groupId> |
| 76 | <artifactId>antlr-runtime</artifactId> |
| 77 | <version>3.5.2</version> |
| 78 | </dependency> |
| 79 | </dependencies> |
| 80 | </plugin> |
| 81 | </plugins> |
| 82 | </build> |
| 83 | </profile> |
| 84 | </profiles> |
| 85 | |
| 86 | </project> |