Package org.andromda.core.configuration

Examples of org.andromda.core.configuration.Configuration


            if (configurationUri == null)
            {
                throw new MojoExecutionException("Configuration could not be loaded from '" + this.configurationUri +
                    "'");
            }
            final Configuration configuration = this.getConfiguration(configurationUri);
            boolean execute = true;
            if (this.lastModifiedCheck)
            {
                final File directory = new File(this.buildSourceDirectory);
                execute = ResourceUtils.modifiedAfter(
                        ResourceUtils.getLastModifiedTime(configurationUri),
                        directory);
                if (!execute)
                {
                    final Repository[] repositories = configuration.getRepositories();
                    int repositoryCount = repositories.length;
                    for (int ctr = 0; ctr < repositoryCount; ctr++)
                    {
                        final Repository repository = repositories[ctr];
                        if (repository != null)
View Full Code Here


     */
    private Configuration getConfiguration()
        throws MalformedURLException
    {
        final URL uri = ResourceUtils.toURL(this.configurationUri);;
        final Configuration configuration =
            Configuration.getInstance(
                this.replaceProperties(ResourceUtils.getContents(uri)));
        configuration.addMappingsSearchLocation(this.mappingsSearchLocation);
        return configuration;
    }
View Full Code Here

        throws BuildException
    {
        try
        {
            final URL uri = new URL(configurationUri);
            final Configuration configuration =
                Configuration.getInstance(
                    this.replaceProperties(ResourceUtils.getContents(uri)));
            configuration.addMappingsSearchLocation(this.mappingsSearchLocation);
            final AndroMDA andromda = AndroMDA.newInstance();
            if (andromda != null)
            {
                andromda.run(configuration);
                andromda.shutdown();
View Full Code Here

            // - setup the classpath
            this.addPluginDependencies(
                Constants.ARTIFACT_ID,
                Artifact.SCOPE_RUNTIME);
            this.initializeClasspathFromClassPathElements(this.project.getRuntimeClasspathElements());
            final Configuration configuration = this.getConfiguration(configurationUri);
            this.execute(configuration);
        }
        catch (Throwable throwable)
        {
            String message = "Error running AndroMDA";
View Full Code Here

     */
    protected Configuration getConfiguration(final URL configurationUri)
        throws IOException
    {
        final String contents = this.replaceProperties(ResourceUtils.getContents(configurationUri));
        final Configuration configuration = Configuration.getInstance(contents);
        final URL mappingsUrl = ResourceUtils.getResource(MAPPINGS_PATH);
        if (mappingsUrl != null)
        {
            configuration.addMappingsSearchLocation(mappingsUrl.toString());
        }
        return configuration;
    }
View Full Code Here

            {
                throw new BuildException("Configuration is not a valid URI --> '" + this.configurationUri + "'");
            }

            // Create the configuration file from URI
            final Configuration configuration = Configuration.getInstance(this.configurationUri);

            // Create and start the server
            final AndroMDAServer andromdaServer = AndroMDAServer.newInstance();
            if (andromdaServer != null)
            {
View Full Code Here

            {
                throw new BuildException("Configuration is not a valid URI --> '" + this.configurationUri + "'");
            }

            // Create the configuration file
            final Configuration configuration = Configuration.getInstance(this.configurationUri);

            final AndroMDAServer andromdaServer = AndroMDAServer.newInstance();
            if (andromdaServer != null)
            {
                andromdaServer.stop(configuration);
View Full Code Here

TOP

Related Classes of org.andromda.core.configuration.Configuration

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.