@Test public void testExecuteEmptyWorkflowSourceDir() throws Exception { String workflowSourceDir = ""; System.setProperty(PROPERTY_NAME_WF_SOURCE_DIR, workflowSourceDir); mojo.execute(); assertNull(System.getProperty(PROPERTY_NAME_SANDBOX_NAME)); }
@Override public void execute() throws MojoExecutionException, MojoFailureException { if (System.getProperties().containsKey(PROPERTY_NAME_WF_SOURCE_DIR) && !System.getProperties().containsKey(PROPERTY_NAME_SANDBOX_NAME)) { String generatedSandboxName = generateSandboxName(System.getProperties().getProperty( PROPERTY_NAME_WF_SOURCE_DIR)); if (generatedSandboxName!=null) { System.getProperties().setProperty(PROPERTY_NAME_SANDBOX_NAME, generatedSandboxName); } else { logger.warn("unable to generate sandbox name from path: {}", System.getProperties().getProperty(PROPERTY_NAME_WF_SOURCE_DIR)); } } }
GenerateOoziePropertiesMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { if (System.getProperties().containsKey(PROPERTY_NAME_WF_SOURCE_DIR) && !System.getProperties().containsKey(PROPERTY_NAME_SANDBOX_NAME)) { String generatedSandboxName = generateSandboxName(System.getProperties().getProperty( PROPERTY_NAME_WF_SOURCE_DIR)); if (generatedSandboxName!=null) { System.getProperties().setProperty(PROPERTY_NAME_SANDBOX_NAME, generatedSandboxName); } else { logger.warn("unable to generate sandbox name from path: {}", System.getProperties().getProperty(PROPERTY_NAME_WF_SOURCE_DIR)); } } } }
GenerateOoziePropertiesMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { if (System.getProperties().containsKey(PROPERTY_NAME_WF_SOURCE_DIR) && !System.getProperties().containsKey(PROPERTY_NAME_SANDBOX_NAME)) { String generatedSandboxName = generateSandboxName(System.getProperties().getProperty( PROPERTY_NAME_WF_SOURCE_DIR)); if (generatedSandboxName!=null) { System.getProperties().setProperty(PROPERTY_NAME_SANDBOX_NAME, generatedSandboxName); } else { logger.warn("unable to generate sandbox name from path: {}", System.getProperties().getProperty(PROPERTY_NAME_WF_SOURCE_DIR)); } } }  }
GenerateOoziePropertiesMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { if (System.getProperties().containsKey(PROPERTY_NAME_WF_SOURCE_DIR) && !System.getProperties().containsKey(PROPERTY_NAME_SANDBOX_NAME)) { String generatedSandboxName = generateSandboxName(System.getProperties().getProperty( PROPERTY_NAME_WF_SOURCE_DIR)); if (generatedSandboxName!=null) { System.getProperties().setProperty(PROPERTY_NAME_SANDBOX_NAME, generatedSandboxName); } else { logger.warn("unable to generate sandbox name from path: {}", System.getProperties().getProperty(PROPERTY_NAME_WF_SOURCE_DIR)); } } }  @Override void execute(); }
GenerateOoziePropertiesMojo extends AbstractMojo { @Override public void execute() throws MojoExecutionException, MojoFailureException { if (System.getProperties().containsKey(PROPERTY_NAME_WF_SOURCE_DIR) && !System.getProperties().containsKey(PROPERTY_NAME_SANDBOX_NAME)) { String generatedSandboxName = generateSandboxName(System.getProperties().getProperty( PROPERTY_NAME_WF_SOURCE_DIR)); if (generatedSandboxName!=null) { System.getProperties().setProperty(PROPERTY_NAME_SANDBOX_NAME, generatedSandboxName); } else { logger.warn("unable to generate sandbox name from path: {}", System.getProperties().getProperty(PROPERTY_NAME_WF_SOURCE_DIR)); } } }  @Override void execute(); static final String PROPERTY_NAME_WF_SOURCE_DIR; static final String PROPERTY_NAME_SANDBOX_NAME; }