Examples of AssemblyInfoMarshaller


Examples of npanday.assembler.AssemblyInfoMarshaller

            assemblyInfo.setKeyFile( keyfile );
            assemblyInfo.setKeyName( keycontainer );
        }
        try
        {
            AssemblyInfoMarshaller marshaller = assemblerContext.getAssemblyInfoMarshallerFor( language.trim() );
            marshaller.marshal( assemblyInfo, project, null );
        }
        catch ( IOException e )
        {
            throw new MojoExecutionException( "NPANDAY-902-002: Problem generating assembly info class", e );
        }
View Full Code Here

Examples of npanday.assembler.AssemblyInfoMarshaller

    public AssemblyInfoMarshaller getAssemblyInfoMarshallerFor( String language )
        throws AssemblyInfoException
    {
        AssemblyPlugin plugin = repository.getAssemblyPluginFor( language );
        String className = plugin.getPluginClass();
        AssemblyInfoMarshaller marshaller;
        try
        {
            Class cc = Class.forName( className );
            marshaller = (AssemblyInfoMarshaller) cc.newInstance();
            marshaller.init( plugin );
        }
        catch ( ClassNotFoundException e )
        {
            throw new AssemblyInfoException(
                "NPANDAY-020-002: Unable to create AssemblyInfoMarshaller: Class Name = " + className, e );
View Full Code Here

Examples of org.apache.maven.dotnet.assembler.AssemblyInfoMarshaller

                .BUILD_SOURCES_GENERATED.getBuildDirectoryName() + File.separator + "META-INF" + File.separator +
                "AssemblyInfo.cs" );
            FileUtils.mkdir( file.getParent() );

            FileOutputStream fos = new FileOutputStream( file );
            AssemblyInfoMarshaller marshaller =
                assemblerContext.getAssemblyInfoMarshallerFor( ProgrammingLanguage.C_SHARP );
            marshaller.marshal( assemblyInfo, fos );
        }
        catch ( IOException e )
        {
            throw new MojoExecutionException( "NMAVEN-902-002: Problem generating assembly info class", e );
        }
View Full Code Here

Examples of org.apache.maven.dotnet.assembler.AssemblyInfoMarshaller

                        (AssemblyInfoMarshallerAnnotation) c.getAnnotation( AssemblyInfoMarshallerAnnotation.class );
                    if ( annotation != null )
                    {
                        for ( ProgrammingLanguage programmingLanguage : annotation.programmingLanguages() )
                        {
                            AssemblyInfoMarshaller marshaller = (AssemblyInfoMarshaller) c.newInstance();
                            marshaller.init( programmingLanguage, new File( mavenProject.getBuild().getDirectory(),
                                                                            BuildDirectories.BUILD_SOURCES_GENERATED.getBuildDirectoryName() ) );
                            marshallers.add( marshaller );
                        }
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.