| RE: [subversive-dev] How to set some properties at the creationoffolders/files? |
Hello, Tongjia.To set SVN properties the resources it firstly must be added to source control. To add resources to the source control AddToSVNOperation should be used. After success the properties can be set.To set properties SetPropertiesOperation should be used. Both operations are from org.eclipse.team.svn.core.operation.local, not org.eclipse.team.svn.core.operation.file....So to solve the task you shoud (for example):SetPropertiesOperation mainOp = new SetPropertiesOperation(resources, properties);AddToSVNOperation addOp = new AddToSVNOperation(resources);
CompositeOperation op = new CompositeOperation(mainOp.getId());
op.add(addOp);
op.add(mainOp, new IActionOperation [] {addOp});
ProgressMonitorUtility.doTaskScheduledDefault(op);
And that's all.Best regards, Alexei Goncharov (Subversive Team).