| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| --> |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.myfaces.tobago</groupId> |
| <artifactId>tobago-theme</artifactId> |
| <version>1.5.12</version> |
| </parent> |
| <artifactId>tobago-theme-scarborough</artifactId> |
| <packaging>jar</packaging> |
| <name>Tobago Theme Scarborough</name> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <childDelegation>true</childDelegation> |
| <excludes> |
| <exclude>**/DateUnitTest*</exclude> |
| <exclude>**/GridLayoutUnitTest*</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <id>strip-javascript</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>compile</phase> |
| <configuration> |
| <target> |
| <concat destfile="${project.build.directory}/javascript-min/scarborough/script/tobago.min.js"> |
| <filelist dir="${basedir}/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script" files="tobago.js" /> |
| </concat> |
| <replaceregexp match="^.*//.*@DEV_ONLY.*$" replace="" byline="true"> |
| <fileset dir="${project.build.directory}/javascript-min"> |
| <include name="**/tobago.min.js" /> |
| </fileset> |
| </replaceregexp> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>ant</groupId> |
| <artifactId>ant-apache-regexp</artifactId> |
| <version>1.6.5</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <id>compress-standard</id> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <phase>compile</phase> |
| <configuration> |
| <executable>java</executable> |
| <arguments> |
| <argument>-jar</argument> |
| <argument>../tobago-theme-standard/lib/compiler-20120430.jar</argument> |
| <argument>--js</argument> |
| <argument>${project.build.directory}/javascript-min/scarborough/script/tobago.min.js</argument> |
| <argument>--js_output_file</argument> |
| <argument> |
| target/classes/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.min.js |
| </argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>yuicompressor-maven-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compress</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <suffix>.min</suffix> |
| <excludes> |
| <exclude>**/*.js</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.myfaces.tobago</groupId> |
| <artifactId>tobago-theme-standard</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.myfaces.tobago</groupId> |
| <artifactId>tobago-core</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>sun.jdk</groupId> |
| <artifactId>tools</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.el</groupId> |
| <artifactId>el-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>rhino</groupId> |
| <artifactId>js</artifactId> |
| <version>1.6R2</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <profiles> |
| <profile> |
| <id>jdk14retro</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>retrotranslator-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>translate-project</goal> |
| </goals> |
| <configuration> |
| <classifier>jdk14retro</classifier> |
| <attach>true</attach> |
| <verify>true</verify> |
| <verifyClasspath> |
| <element>${java14.home}/${java.classes.jar}</element> |
| </verifyClasspath> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>net.sf.retrotranslator</groupId> |
| <artifactId>retrotranslator-runtime</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |