Skip to content

Commit

Permalink
Add ui plugin and wro4j plugin template
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <fbricon@gmail.com>
  • Loading branch information
fbricon committed Jan 17, 2012
1 parent 7cb3e84 commit 317caa0
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 0 deletions.
6 changes: 6 additions & 0 deletions org.jboss.tools.m2e.wro4j.feature/feature.xml
Expand Up @@ -24,4 +24,10 @@
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.jboss.tools.m2e.wro4j.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>
7 changes: 7 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/.classpath
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/.gitignore
@@ -0,0 +1,2 @@
/.metadata
/target
34 changes: 34 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/.project
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.jboss.tools.m2e.wro4j.ui</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,3 @@
#Mon Jan 16 23:06:53 CET 2012
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -0,0 +1,8 @@
#Fri Jan 13 14:44:26 CET 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,5 @@
#Thu Jan 12 15:55:25 CET 2012
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
8 changes: 8 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: m2e connector for wro4j
Bundle-SymbolicName: org.jboss.tools.m2e.wro4j.ui;singleton:=true
Bundle-Version: 0.0.1.qualifier
Bundle-Vendor: Red Hat, Inc.
Bundle-RequiredExecutionEnvironment: JavaSE-1.6, JavaSE-1.7
Require-Bundle: org.eclipse.m2e.editor.xml;bundle-version="[1.0.0,1.2.0)"
5 changes: 5 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/build.properties
@@ -0,0 +1,5 @@
source.. = src/
output.. = target/classes
bin.includes = META-INF/,\
.,\
plugin.xml
28 changes: 28 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/plugin.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.editors.templates">
<template id="org.jboss.tools.m2e.wro4j.templates.plugin.wro4j"
contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.plugins"
name="wro4j plugin"
description="WRO4J Resource Optimizer plugin configuration">
<pattern> &lt;plugin&gt;
&lt;groupId&gt;ro.isdc.wro4j&lt;/groupId&gt;
&lt;artifactId&gt;wro4j-maven-plugin&lt;/artifactId&gt;
&lt;version&gt;1.4.3&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;phase&gt;compile&lt;/phase&gt;
&lt;goals&gt;
&lt;goal&gt;run&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;configuration&gt;
&lt;jsDestinationFolder&gt;${cursor}$${project.build.directory}/$${project.build.finalName}/resources/js&lt;/jsDestinationFolder&gt;
&lt;cssDestinationFolder&gt;$${project.build.directory}/$${project.build.finalName}/resources/styles&lt;/cssDestinationFolder&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;</pattern>
</template>
</extension>
</plugin>
22 changes: 22 additions & 0 deletions org.jboss.tools.m2e.wro4j.ui/pom.xml
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012 Red Hat, Inc.
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>

<parent>
<groupId>org.jboss.tools.m2e.wro4j</groupId>
<artifactId>org.jboss.tools.m2e.wro4j.parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>org.jboss.tools.m2e.wro4j.ui</artifactId>
<packaging>eclipse-plugin</packaging>

<name>M2E connector for WRO4J :: UI </name>
</project>
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -29,6 +29,7 @@

<modules>
<module>org.jboss.tools.m2e.wro4j.core</module>
<module>org.jboss.tools.m2e.wro4j.ui</module>
<module>org.jboss.tools.m2e.wro4j.tests</module>
<module>org.jboss.tools.m2e.wro4j.feature</module>
<module>org.jboss.tools.m2e.wro4j.site</module>
Expand Down

0 comments on commit 317caa0

Please sign in to comment.