ScmAction addDirectory = new AddDirectory( "",
"folder1" );
actions.addScmAction( addDirectory );
byte[] content1 = new byte[]{1, 1, 1, 1};
ScmAction addFile = new AddFile( "folder1",
"file1.dat",
content1 );
actions.addScmAction( addFile );
addDirectory = new AddDirectory( "folder1",
"folder1_1" );
actions.addScmAction( addDirectory );
byte[] content2 = new byte[]{1, 0, 0, 1};
addFile = new AddFile( "folder1/folder1_1",
"file1.dat",
content2 );
actions.addScmAction( addFile );
svn.execute( actions,
"test message" );