Package org.apache.maven.dotnet.assembler

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


                        (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

Related Classes of org.apache.maven.dotnet.assembler.AssemblyInfoMarshaller

Copyright © 2018 www.massapicom. 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.