here is some code

    public void execute()
        throws MojoExecutionException, MojoFailureException {

        Commandline cl = new Commandline();
        cl.setExecutable( new File( this.iaLocation, "build"
).getAbsolutePath() );
        cl.createArg().setFile( this.iaProjectFile );

        cl.createArg().setValue( "-d" );
        cl.createArg().setFile( this.buildWorkdirLocation );

        this.executeCommandline( cl, null );

        if ( this.attachArtifacts != null ) {

            for ( IAArtifact attachArtifact : attachArtifacts ) {

                String type = attachArtifact.getType();
                if ( type == null ) {
                    type = FileUtils.getExtension(
attachArtifact.getFile().getAbsolutePath() );
                }

                projectHelper.attachArtifact( this.project, type,
attachArtifact.getClassifier(),
                                              attachArtifact.getFile() );
            }
        }

    }


On Wed, Mar 7, 2012 at 3:51 PM, Dan Tran <[email protected]> wrote:
> I have experience on both IA ant and build executable. Ended up to
> write a maven plugin ( ia-maven-plugin) and just invoke the
> build/build.exe command line
>
> -D
>
> On Wed, Mar 7, 2012 at 2:03 PM, Ed Hillmann <[email protected]> wrote:
>> On Thu, Mar 8, 2012 at 3:24 AM, Wayne Fay <[email protected]> wrote:
>>
>>> A friend is using Ant + InstallAnywhere and I told him that I would
>>> look into options for integrating it with his Maven builds. I am
>>> familiar with izPack and other options but his company has an
>>> investment in IA and going to another tool is not desired.
>>>
>>> It looks like there is an Ant task provided by IA and right now I'm
>>> planning to leverage that, but I'd also like to hear from anyone else
>>> who is using IA with Maven to hear your thoughts and comments.
>>>
>>>
>> Hi Wayne.  I've just started porting an existing ant script to Maven that
>> was used to perform an IA build.  The existing Ant script moved a bunch of
>> files around to be in a certain directory for the IA project, and then
>> kicked off the IA build.
>>
>> I moved the file-moving logic into Maven using the Assembly plugin, and
>> then kicked off the IA build using the antrun plugin.  This works pretty
>> well, as all the antrun plugin needs to do is run the IA build.  Maven does
>> the remaining logic which was in the old Ant script.
>>
>> I did the same thing when I started, though.  I looked for an IA plugin for
>> Maven, and probably would have used it first had one been available (I
>> couldn't find one).  However, using antrun has been doing the job just fine.
>>
>> Hope this helps,
>> Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to