Francesco Mangiacrapa 2018-05-16 10:46:32 +00:00
parent 424c41fe78
commit 0c9b10a1c2
5 changed files with 18 additions and 13 deletions

View File

@ -28,9 +28,9 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="owner.project.facets" value="java"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>

View File

@ -1,6 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

View File

@ -228,7 +228,8 @@ public class WorkspaceDataMinerTaskExecutor implements ExecutableTask<TaskConfig
*/
@Override
public Boolean removeTaskConfiguration(TaskConfiguration taskConfiguration) throws ItemNotExecutableException, Exception {
logger.debug("Remove task configuration "+taskConfiguration+ "starts...");
logger.info("Removing task configuration with key: "+taskConfiguration.getConfigurationKey() + " starts...");
ValidateTaskConfiguration(taskConfiguration);
checkOwner();
@ -255,7 +256,7 @@ public class WorkspaceDataMinerTaskExecutor implements ExecutableTask<TaskConfig
if(found){
JSONArray newConfgs = jsonUtil.toJSONArray(newConfigurations);
WsUtil.setPropertyValue(item, WS_DM_TASK_TASK_CONF, newConfgs.toString());
logger.info("Removed task configuration "+taskConfiguration+ " from saved configurations");
logger.info("Removed correclty the task configuration "+taskConfiguration+ " from saved configurations");
return true;
}

View File

@ -286,6 +286,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
builder.append(listParameters);
builder.append(", configurationKey=");
builder.append(configurationKey);
builder.append(", owner=");
builder.append(owner);
builder.append("]");
return builder.toString();
}

View File

@ -14,7 +14,6 @@ import org.gcube.common.homelibrary.home.exceptions.InternalErrorException;
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
import org.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundException;
import org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.common.workspacetaskexecutor.dataminer.WorkspaceDataMinerTaskExecutor;
import org.gcube.common.workspacetaskexecutor.shared.TaskParameter;
import org.gcube.common.workspacetaskexecutor.shared.TaskParameterType;
@ -46,7 +45,8 @@ public class TestDataMinerTaskExecutor {
private static JsonUtil jUtil = new JsonUtil();
//CREATE DUMMY CONFIGURATIONS
private static List<TaskConfiguration> listDummyConf = gelDummyListOfConfigurations(3);
private static List<TaskConfiguration> listDummyConf;
/**
*
@ -93,13 +93,15 @@ public class TestDataMinerTaskExecutor {
public static void main(String[] args) {
ScopeProvider.instance.set(SCOPE);
WorkspaceDataMinerTaskExecutor exec = WorkspaceDataMinerTaskExecutor.getInstance();
exec.withOwner(USERNAME);
//jsonCheck();
// ScopeProvider.instance.set(SCOPE);
// listDummyConf = gelDummyListOfConfigurations(3);
// WorkspaceDataMinerTaskExecutor exec = WorkspaceDataMinerTaskExecutor.getInstance();
// exec.withOwner(USERNAME);
// //jsonCheck();
//
// //ERASE ALL CONFIGURATIONS
// eraseAllTaskConfigurations(exec);
//ERASE ALL CONFIGURATIONS
eraseAllTaskConfigurations(exec);
//GET LIST CONFIGURATIONS
//getConfigurations(exec);