Hi Alex,

I changed the multi-value options to "flexVersions" and "platforms" as i wanted 
them to reflect their multi-value nature ... must have forgotten to fix this in 
the documentation.

Are you sure "help" doesn't work? It should ... if it's "-help" I'll have to 
fix that.

Chris

________________________________________
Von: Alex Harui <aha...@adobe.com>
Gesendet: Freitag, 10. April 2015 19:09
An: dev@flex.apache.org
Betreff: Re: AW: AW: [MAVENIZER] New dev-version available for playing around 
with Command Line Interface :-)

Hi Chris,

I pulled changes this morning and everything built.  I tried a download
command and it seemed to work. I fixed one thing in the README where the
option seems to be named “flashVersions” instead of “flashVersion”.

I also noticed that “help” isn’t a valid command but “-help” is.  Is that
intended?  It is a bit confusing in the README because you also used the
‘-‘ to list the options.

I think I’m otherwise good to go.  Great job adding this stuff.

-Alex

On 4/9/15, 11:58 PM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:

>Ok ... so I fixed the pom-related things you noticed.
>
>Does anyone here know which gitignore rule applys for "pom.xml" files?
>That seems to have been the reason for the poms not being committed. I
>forced them in, but we should fix what was causing this.
>
>I adjusted the name of the root artifact to apache-flex-sdk-converter, as
>Justin pointed out that source distributions with the "apache-" prefix
>are specially copyright protected. Unfortunately I missed to adjust this
>for the 4 child poms. I fixed that (It worked for me as I did have a
>flex-sdk-converter pom in my local repo)
>
>Thanks for reporting this stuff ... will add a "if not y/yes/n/no then
>retry"-loop right away :-)
>
>Chris
>
>________________________________________
>Von: Frédéric THOMAS <webdoubl...@hotmail.com>
>Gesendet: Freitag, 10. April 2015 01:36
>An: dev@flex.apache.org
>Betreff: RE: AW: [MAVENIZER] New dev-version available for playing around
>with Command Line Interface :-)
>
>And I hate the outlook web mail at time, I never know how it will or not
>keep the break lines.
>
>Frédéric THOMAS
>
>> From: webdoubl...@hotmail.com
>> To: dev@flex.apache.org
>> Subject: RE: AW: [MAVENIZER] New dev-version available for playing
>>around with Command Line Interface :-)
>> Date: Fri, 10 Apr 2015 00:33:06 +0100
>>
>> Hey Chris,
>> Pretty neat :-) I enjoyed it.
>>
>> At the moment I've been running 2 commands [1] and [2] and for the
>>first one, that's a detail but when prompted to confirm the license
>>agreement and answer 'y' instead of 'Yes', I've got that [3] and I have
>>to start the all thing again, by the way, I guess the error is not catch
>>because that will be done in FM 7.1.0 ? Otherwise I guess we could
>>accept y/n and yes/no upper and lower case, what do you think ?
>> I've got another little issue too [4] and [5], except of that, the all
>>thing looks great !!
>> Next steps for me but not tonight:
>> 1- Try the deployer2- Test the resulting mavenized SDK against an
>>application.3- Something else ??
>> Good job Chris :-)
>> Frédéric THOMAS
>> [1]java -jar apache-flex-sdk-converter-1.0.0-SNAPSHOT.jar -fdkDir
>>d:/flex-converter/FDKs -flexVersion 4.14.1 -flashVersion 17.0,16.0
>>-airVersion 17.0 -platform WINDOWS,MAC -fontkit download
>> [2]java -jar apache-flex-sdk-converter-1.0.0-SNAPSHOT.jar -fdkDir
>>d:/flex-converter/FDKs -flexVersion 4.14.1 -flashVersion 17.0
>>-airVersion 17.0 -fontkit -mavenDir d:/flex-converter/maven convert
>> [3] ===========================================================-
>>Downloading Flash SDK version: 17.0 to directory:
>>d:\flex-converter\FDKsThe Adobe SDK license agreement applies to the
>>Adobe Flash Player playerglobal.swc. Do you want to install the Adobe
>>Flash Player playerglobal.swc?Do you accept (Yes/No)? yYou have to
>>accept the license agreement in order to proceed.Exception in thread
>>"main"
>>org.apache.flex.utilities.converter.retrievers.exceptions.RetrieverExcept
>>ion: You have to accept the license agreement in order to proceed.
>> at
>>org.apache.flex.utilities.converter.retrievers.download.DownloadRetriever
>>.confirmLicenseAcceptance(DownloadRetriever.java:352)        at
>>org.apache.flex.utilities.converter.retrievers.download.DownloadRetriever
>>.retrieve(DownloadRetriever.java:79)
>>         at
>>org.apache.flex.utilities.converter.retrievers.download.DownloadRetriever
>>.retrieve(DownloadRetriever.java:73)
>>         at
>>org.apache.flex.utilities.converter.core.SdkConverterCLI.main(SdkConverte
>>rCLI.java:200)
>> [4] ===========================================================
>>      - Downloading Flex Fontkit libraries to directory:
>>d:\flex-converter\FDKsApache Flex can optionally integrate with Adobe's
>>embedded font support. This feature requires a few font jars from
>>theAdobe Flex SDK. The Adobe SDK license agreement for Adobe Flex 4.6
>>applies to these jars. This license is not compatible with the Apache V2
>>license. Do you want to install these jars from the Adobe Flex SDK?Do
>>you accept (Yes/No)? YesSLF4J: Failed to load class
>>"org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation
>>(NOP) logger implementationSLF4J: See
>>http://www.slf4j.org/codes.html#StaticLoggerBinder for further
>>details.statusCode: 200reasonPhrase: OK
>> [5] ------------------------------------------------
>>Conversion------------------------------------------------ Converting
>>Flex SDK from d:\flex-converter\FDKs to d:\flex-converter\mavenSLF4J:
>>Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J:
>>Defaulting to no-operation (NOP) logger implementationSLF4J: See
>>http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>> > From: webdoubl...@hotmail.com
>> > To: dev@flex.apache.org
>> > Subject: RE: AW: [MAVENIZER] New dev-version available for playing
>>around with Command Line Interface :-)
>> > Date: Thu, 9 Apr 2015 23:07:42 +0100
>> >
>> > Hi Alex,
>> > Yes, I had the same.
>> >
>> > Note: My patch says the version of the "cli" is 1.1.0-SNAPSHOT but in
>>reality should be 1.0.0-SNAPSHOT, anyway, won't make any difference and
>>will build.
>> >
>> > Frédéric THOMAS
>> >
>> > > From: aha...@adobe.com
>> > > To: dev@flex.apache.org
>> > > Subject: Re: AW: [MAVENIZER] New dev-version available for playing
>>around with Command Line Interface :-)
>> > > Date: Thu, 9 Apr 2015 21:57:14 +0000
>> > >
>> > > Will that fix the errors I got?  Here’s the output for me:
>> > >
>> > > ~/git/flex/master/flex-utilities/mavenizer$ mvn clean install
>> > > [INFO] Scanning for projects...
>> > > [ERROR] The build could not read 4 projects -> [Help 1]
>> > > [ERROR]
>> > > [ERROR]   The project
>> > > org.apache.flex.utilities.converter:retrievers:1.0.0-SNAPSHOT
>> > >
>>(/Users/aharui/git/flex/master/flex-utilities/mavenizer/retrievers/pom.xm
>>l)
>> > >  has 1 error
>> > > [ERROR]     Non-resolvable parent POM: Could not find artifact
>> > >
>>org.apache.flex.utilities.converter:flex-sdk-converter:pom:1.0.0-SNAPSHOT
>> > > and 'parent.relativePath' points at wrong local POM @ line 23,
>>column 13
>> > > -> [Help 2]
>> > > [ERROR]
>> > > [ERROR]   The project
>> > > org.apache.flex.utilities.converter:converters:1.0.0-SNAPSHOT
>> > >
>>(/Users/aharui/git/flex/master/flex-utilities/mavenizer/converters/pom.xm
>>l)
>> > >  has 1 error
>> > > [ERROR]     Non-resolvable parent POM: Could not find artifact
>> > >
>>org.apache.flex.utilities.converter:flex-sdk-converter:pom:1.0.0-SNAPSHOT
>> > > and 'parent.relativePath' points at wrong local POM @ line 23,
>>column 13
>> > > -> [Help 2]
>> > > [ERROR]
>> > > [ERROR]   The project
>> > > org.apache.flex.utilities.converter:deployers:1.0.0-SNAPSHOT
>> > >
>>(/Users/aharui/git/flex/master/flex-utilities/mavenizer/deployers/pom.xml
>>)
>> > > has 1 error
>> > > [ERROR]     Non-resolvable parent POM: Could not find artifact
>> > >
>>org.apache.flex.utilities.converter:flex-sdk-converter:pom:1.0.0-SNAPSHOT
>> > > and 'parent.relativePath' points at wrong local POM @ line 23,
>>column 13
>> > > -> [Help 2]
>> > > [ERROR]
>> > > [ERROR]   The project
>> > > org.apache.flex.utilities.converter:cli:1.0.0-SNAPSHOT
>> > >
>>(/Users/aharui/git/flex/master/flex-utilities/mavenizer/cli/pom.xml) has
>>1
>> > > error
>> > > [ERROR]     Non-resolvable parent POM: Could not find artifact
>> > >
>>org.apache.flex.utilities.converter:flex-sdk-converter:pom:1.0.0-SNAPSHOT
>> > > and 'parent.relativePath' points at wrong local POM @ line 23,
>>column 13
>> > > -> [Help 2]
>> > > [ERROR]
>> > > [ERROR] To see the full stack trace of the errors, re-run Maven
>>with the
>> > > -e switch.
>> > > [ERROR] Re-run Maven using the -X switch to enable full debug
>>logging.
>> > > [ERROR]
>> > > [ERROR] For more information about the errors and possible
>>solutions,
>> > > please read the following articles:
>> > > [ERROR] [Help 1]
>> > >
>>http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>> > > [ERROR] [Help 2]
>> > >
>>http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExcepti
>>on
>> > >
>> > > BTW, I made a few spelling corrections to README.txt
>> > >
>> > >
>> > > -Alex
>> > >
>> > > On 4/9/15, 2:32 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com>
>>wrote:
>> > >
>> > > >Didn't try yet with your new commit but there was a problem with
>>the
>> > > >fontkit pom and the name of the parent artifact, this is my patch
>>[1] to
>> > > >make it build, can you check you are align with on the develop
>>branch too
>> > > >? after you confirm, I will stash and pull.
>> > > >
>> > > >Thanks,
>> > > >Frédéric THOMAS
>> > > >[1]Index: cli/pom.xmlIDEA additional info:Subsystem:
>> > >
>>>com.intellij.openapi.diff.impl.patch.CharsetEP<+>UTF-8==================
>>>==
>> > > >===============================================--- cli/pom.xml
>>(revision
>> > > >)+++ cli/pom.xml (revision )@@ -0,0 +1,96 @@+<?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/xsd/maven-4.0.0.xsd";>+
>> > > ><modelVersion>4.0.0</modelVersion>++    <parent>+
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>+
>> > > ><artifactId>flex-sdk-converter</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+    </parent>++
>> > > ><artifactId>cli</artifactId>+    <version>1.1.0-SNAPSHOT</version>+
>> > > ><packaging>jar</packaging>++    <build>+        <plugins>+
>> > > ><plugin>+
>><artifactId>maven-assembly-plugin</artifactId>+
>> > > >              <version>2.4</version>+
>><configuration>+
>> > > >               <archive>+                        <manifest>+
>> > > >
>> > >
>>><addDefaultImplementationEntries>true</addDefaultImplementationEntries>+
>> > > >                          <addClasspath>true</addClasspath>+
>> > > >
>> > >
>>><mainClass>org.apache.flex.utilities.converter.core.SdkConverterCLI</mai
>>>nC
>> > > >lass>+                        </manifest>+
>> > > ><manifestEntries>+
>> > > ><Implementation-Build>${project.version}</Implementation-Build>+
>> > > >              </manifestEntries>+                    </archive>+
>> > > >          <descriptorRefs>+
>> > > ><descriptorRef>jar-with-dependencies</descriptorRef>+
>> > > ></descriptorRefs>+
>> > > ><finalName>flex-sdk-converter-${project.version}</finalName>+
>> > > >       <appendAssemblyId>false</appendAssemblyId>+
>> > > ></configuration>+                <executions>+
>> > > ><execution>+                        <phase>package</phase>+
>> > > >         <goals>+                            <goal>single</goal>+
>> > > >               </goals>+                    </execution>+
>> > > ></executions>+            </plugin>+        </plugins>+
>></build>++
>> > > ><dependencies>+        <dependency>+
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>+
>> > > ><artifactId>download-retriever</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+        </dependency>+
>> > > ><dependency>+
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>+
>> > > ><artifactId>flex-converter</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+        </dependency>+
>> > > ><dependency>+
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>+
>> > > ><artifactId>aether-deployer</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+        </dependency>++
>> > > ><dependency>+            <groupId>commons-cli</groupId>+
>> > > ><artifactId>commons-cli</artifactId>+
>><version>1.2</version>+
>> > > >      </dependency>+        <dependency>+
>> > > ><groupId>org.apache.commons</groupId>+
>> > > ><artifactId>commons-lang3</artifactId>+
>> > > ><version>3.3.2</version>+        </dependency>+
>> > > ></dependencies>++</project>Index: converters/fontkit/pom.xmlIDEA
>> > > >additional info:Subsystem:
>> > >
>>>com.intellij.openapi.diff.impl.patch.CharsetEP<+>UTF-8==================
>>>==
>> > > >===============================================---
>> > > >converters/fontkit/pom.xml       (revision )+++
>> > > >converters/fontkit/pom.xml       (revision )@@ -0,0 +1,46 @@+<?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/xsd/maven-4.0.0.xsd";>+
>> > > ><modelVersion>4.0.0</modelVersion>++    <parent>+
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>+
>> > > ><artifactId>converters</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+    </parent>++
>> > > ><artifactId>fontkit-converter</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+    <packaging>jar</packaging>++
>> > > ><dependencies>+        <dependency>+
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>+
>> > > ><artifactId>base-converter</artifactId>+
>> > > ><version>1.0.0-SNAPSHOT</version>+        </dependency>+
>> > > ><dependency>+            <groupId>org.apache.commons</groupId>+
>> > > > <artifactId>commons-compress</artifactId>+
>> > > ><version>1.4</version>+        </dependency>+
>> > > ></dependencies>++</project>Index: pom.xmlIDEA additional
>>info:Subsystem:
>> > >
>>>com.intellij.openapi.diff.impl.patch.CharsetEP<+>UTF-8==================
>>>==
>> > > >===============================================--- pom.xml
>>(revision
>> > > >897e070999743f99e7401b786d16260f6f6a19d5)+++ pom.xml     (revision
>>)@@ -27,7
>> > > >+27,7 @@     </parent>
>> > > ><groupId>org.apache.flex.utilities.converter</groupId>-
>> > > ><artifactId>apache-flex-sdk-converter</artifactId>+
>> > > ><artifactId>flex-sdk-converter</artifactId>
>> > > ><version>1.0.0-SNAPSHOT</version>     <packaging>pom</packaging>
>> > > >
>> > > >> From: christofer.d...@c-ware.de
>> > > >> To: dev@flex.apache.org
>> > > >> Subject: AW: [MAVENIZER] New dev-version available for playing
>>around
>> > > >>with Command Line Interface :-)
>> > > >> Date: Thu, 9 Apr 2015 21:20:46 +0000
>> > > >>
>> > > >> Hi Frederic,
>> > > >>
>> > > >> Ok ... thanks for reporting this.
>> > > >>
>> > > >> I had to force the addition of that pom as git complained, that
>>it was
>> > > >>excluded because of one of the active ".gitignore" files rules (I
>> > > >>couldn't find the rule that was causing the exclusion). Well after
>> > > >>forcing it in I could confirm it's presence by going to the
>>Github web
>> > > >>interface.
>> > > >>
>> > > >> Give it another try ... should work now.
>> > > >>
>> > > >> Chris
>> > > >>
>> > > >> ________________________________________
>> > > >> Von: Frédéric THOMAS <webdoubl...@hotmail.com>
>> > > >> Gesendet: Donnerstag, 9. April 2015 22:38
>> > > >> An: dev@flex.apache.org
>> > > >> Betreff: RE: [MAVENIZER] New dev-version available for playing
>>around
>> > > >>with Command Line Interface :-)
>> > > >>
>> > > >> Hi Chris,
>> > > >> I need to re-install my artifactory on my machine, in between,
>>can you
>> > > >>check the pom.xml for the CLI has been committed to develop as I
>>can't
>> > > >>see it.
>> > > >>
>> > > >> Thanks,
>> > > >> Frédéric THOMAS
>> > > >>
>> > > >> > From: christofer.d...@c-ware.de
>> > > >> > To: dev@flex.apache.org
>> > > >> > Subject: [MAVENIZER] New dev-version available for playing
>>around
>> > > >>with Command Line Interface :-)
>> > > >> > Date: Wed, 8 Apr 2015 14:30:41 +0000
>> > > >> >
>> > > >> > Hi,
>> > > >> >
>> > > >> >
>> > > >> > while I was at it to implement the last changes I saw for the
>>first
>> > > >>release, I also removed all the old legacy "main" classes and
>>replaced
>> > > >>them with one Commandline Interface (module cli)
>> > > >> >
>> > > >> >
>> > > >> > If you checkout the "develop" branch of the flex-utils repo,
>>and
>> > > >>build the Mavenizer using "mvn clean install", you will get a
>> > > >>"cli/target/apache-flex-sdk-converter-1.0.0-SNAPSHOT.jar"
>> > > >> >
>> > > >> >
>> > > >> > in the "cli/target" directory run the cli like this:
>> > > >> >
>> > > >> > java -jar apache-flex-sdk-converter-1.0.0-SNAPSHOT.jar ...
>>(followed
>> > > >>by the commands you want it to execute)
>> > > >> >
>> > > >> >
>> > > >> > Currently there are 4 commands:
>> > > >> >
>> > > >> > list:                 Lists all versions and platforms
>>available for
>> > > >>download
>> > > >> >
>> > > >> > download:    Downloads selected versions and assembles an FDK
>> > > >> >
>> > > >> > convert:        Converts a previously installed (using the
>>installer)
>> > > >>or assembled (using download command) FDK into a mavenized form.
>> > > >> >
>> > > >> > deploy:          Uploads previously created maven artifacts to
>>a
>> > > >>remote repository.
>> > > >> >
>> > > >> >
>> > > >> > Some typical usage scenarios:
>> > > >> >
>> > > >> > - Create a mavenized version of a previously installed FDK
>>(Using the
>> > > >>installer):
>> > > >> >
>> > > >> >    "... -fdkDir <FDK install dir> -mavenDir <maven local repo>
>> > > >>convert"
>> > > >> >
>> > > >> > - Download and create an FDK (Flex 1.4.1 with playerglobal
>>17.0 and
>> > > >>16.0 AIR SDK 17.0 for Windows and Mac and the fontkit libs):
>> > > >> >
>> > > >> >    "... -fdkDir <FDK target dir> -flexVersion 4.14.1
>>-flashVersion
>> > > >>17.0,16.0 -airVersion 17.0 -platform WINDOWS,MAC -fontkit
>>download"
>> > > >> >
>> > > >> > - Download and convert an FDK (FDK assembled in temp directory
>>using
>> > > >>Air for current systems platform only):
>> > > >> >
>> > > >> >    "... -flexVersion 4.14.1 -flashVersion 17.0 -airVersion 17.0
>> > > >>-fontkit -mavenDir <maven local repo> download convert"
>> > > >> >
>> > > >> > - Deploy a bunch of maven artifacts to a remote maven
>>repository:
>> > > >> >
>> > > >> >    "... -mavenDir <dir with maven artifacts> -repoUrl <url>
>> > > >>-repoUsername <username> -repoPassword <pasword> deploy"
>> > > >> >
>> > > >> > - "The works" (TM): Download, Convert and Deploy using only
>>temp
>> > > >>directories:
>> > > >> >
>> > > >> >    "... -flexVersion 4.14.1 -flashVersion 17.0 -airVersion 17.0
>> > > >>-fontkit -repoUrl <url> -repoUsername <username> -repoPassword
>><pasword>
>> > > >>download convert deploy"
>> > > >> >
>> > > >> >
>> > > >> > Would be cool if you guys could experiment a little with it
>>... I
>> > > >>think it could probably need a little hardening here and there.
>>The more
>> > > >>experiment with it, the harder it gets :-)
>> > > >> >
>> > > >> >
>> > > >> > Chris
>> > > >> >
>> > > >> >
>> > > >
>> > >
>> >
>>

Reply via email to