On Mac try to work with iOS devices ios
authorRoman Svitanic <rsvitanic@netbeans.org>
Sat, 29 Jun 2013 07:01:58 +0200
branchios
changeset 170cfec20061d13
parent 169 d22f28c04cb7
child 203 3c6d52ddc8ce
On Mac try to work with iOS devices
ko-archetype/src/main/resources/archetype-resources/nbactions-iOSDeploy.xml
ko-archetype/src/main/resources/archetype-resources/nbactions.xml
ko-archetype/src/main/resources/archetype-resources/pom.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ko-archetype/src/main/resources/archetype-resources/nbactions-iOSDeploy.xml	Sat Jun 29 07:01:58 2013 +0200
     1.3 @@ -0,0 +1,26 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<actions>
     1.6 +    <action>
     1.7 +        <actionName>run</actionName>
     1.8 +        <goals>
     1.9 +            <goal>package</goal>
    1.10 +            <goal>org.netbeans.ios:ios-maven-plugin:0.2-SNAPSHOT:deploy</goal>
    1.11 +        </goals>
    1.12 +        <properties>
    1.13 +            <skipTests>true</skipTests>
    1.14 +        </properties>
    1.15 +    </action>
    1.16 +    <action>
    1.17 +        <actionName>debug</actionName>
    1.18 +        <goals>
    1.19 +            <goal>package</goal>
    1.20 +            <goal>org.netbeans.ios:ios-maven-plugin:0.2-SNAPSHOT:deploy</goal>
    1.21 +        </goals>
    1.22 +        <properties>
    1.23 +            <skipTests>true</skipTests>
    1.24 +            <jpda.listen>true</jpda.listen>
    1.25 +            <jpdaAddress>${jpda.address}</jpdaAddress>
    1.26 +            <runMode>Debug</runMode>
    1.27 +        </properties>
    1.28 +    </action>
    1.29 +</actions>
    1.30 \ No newline at end of file
     2.1 --- a/ko-archetype/src/main/resources/archetype-resources/nbactions.xml	Wed Jun 26 18:18:21 2013 +0200
     2.2 +++ b/ko-archetype/src/main/resources/archetype-resources/nbactions.xml	Sat Jun 29 07:01:58 2013 +0200
     2.3 @@ -17,4 +17,33 @@
     2.4              <jpda.listen>maven</jpda.listen>
     2.5          </properties>
     2.6      </action>
     2.7 +    <action>
     2.8 +        <actionName>CUSTOM-Build IPA</actionName>
     2.9 +        <displayName>Build IPA</displayName>
    2.10 +        <goals>
    2.11 +            <goal>package</goal>
    2.12 +            <goal>org.netbeans.ios:ios-maven-plugin:0.2-SNAPSHOT:build-IPA</goal>
    2.13 +        </goals>
    2.14 +        <properties>
    2.15 +            <skipTests>true</skipTests>
    2.16 +            <appjarDebug>true</appjarDebug>
    2.17 +            <appjarDebugName>${project.build.finalName}.jar</appjarDebugName>
    2.18 +        </properties>
    2.19 +    </action>
    2.20 +    <action>
    2.21 +        <actionName>CUSTOM-Debug IPA</actionName>
    2.22 +        <displayName>Debug IPA</displayName>
    2.23 +        <goals>
    2.24 +            <goal>package</goal>
    2.25 +            <goal>org.netbeans.ios:ios-maven-plugin:0.2-SNAPSHOT:ipaddress</goal>
    2.26 +            <goal>org.netbeans.ios:ios-maven-plugin:0.2-SNAPSHOT:build-IPA</goal>
    2.27 +        </goals>
    2.28 +        <properties>
    2.29 +            <skipTests>true</skipTests>            
    2.30 +            <jpda.listen>true</jpda.listen>
    2.31 +            <ipAddress>${ip.address}</ipAddress>
    2.32 +            <jpdaAddress>${jpda.address}</jpdaAddress>
    2.33 +            <runMode>Debug</runMode>            
    2.34 +        </properties>
    2.35 +    </action>
    2.36  </actions>
     3.1 --- a/ko-archetype/src/main/resources/archetype-resources/pom.xml	Wed Jun 26 18:18:21 2013 +0200
     3.2 +++ b/ko-archetype/src/main/resources/archetype-resources/pom.xml	Sat Jun 29 07:01:58 2013 +0200
     3.3 @@ -39,6 +39,7 @@
     3.4    <properties>
     3.5      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     3.6      <net.java.html.version>${project.version}</net.java.html.version>
     3.7 +    <netbeans.compile.on.save>none</netbeans.compile.on.save>
     3.8    </properties>
     3.9    <build>
    3.10        <plugins>
    3.11 @@ -123,4 +124,49 @@
    3.12        <scope>test</scope>
    3.13      </dependency>
    3.14    </dependencies>
    3.15 +  <profiles>
    3.16 +      <profile>
    3.17 +          <id>iOSDeploy</id>
    3.18 +          <activation>
    3.19 +              <os>
    3.20 +                  <name>Mac OS X</name>
    3.21 +              </os>
    3.22 +          </activation>
    3.23 +          <build>
    3.24 +              <plugins>
    3.25 +                  <plugin>
    3.26 +                      <groupId>org.netbeans.ios</groupId>
    3.27 +                      <artifactId>ios-maven-plugin</artifactId>
    3.28 +                      <version>0.2-SNAPSHOT</version>
    3.29 +                      <configuration>
    3.30 +                          <jarfile>\${project.build.directory}/\${project.build.finalName}.jar</jarfile>
    3.31 +                          <title>\${project.name}</title>
    3.32 +                          <mainclass>\${package}.Main</mainclass>
    3.33 +                      </configuration>
    3.34 +                  </plugin>
    3.35 +                  <plugin>
    3.36 +                      <groupId>org.apache.maven.plugins</groupId>
    3.37 +                      <artifactId>maven-jar-plugin</artifactId>
    3.38 +                      <version>2.4</version>
    3.39 +                      <configuration>
    3.40 +                          <archive>
    3.41 +                              <manifest>
    3.42 +                                  <mainClass>\${package}.Main</mainClass>
    3.43 +                                  <addClasspath>true</addClasspath>
    3.44 +                                  <classpathPrefix>lib/</classpathPrefix>
    3.45 +                              </manifest>
    3.46 +                          </archive>
    3.47 +                      </configuration>
    3.48 +                  </plugin>
    3.49 +              </plugins>
    3.50 +          </build>
    3.51 +          <dependencies>
    3.52 +              <dependency>
    3.53 +                  <groupId>org.apidesign.html</groupId>
    3.54 +                  <artifactId>ko-fx</artifactId>
    3.55 +                  <version>\${net.java.html.version}</version>
    3.56 +              </dependency>
    3.57 +          </dependencies>
    3.58 +      </profile>
    3.59 +  </profiles>
    3.60  </project>