HHH-18485 - Documentation symlinks on release
This commit is contained in:
parent
8fbd201151
commit
16088f7f11
|
@ -107,11 +107,11 @@ public class UpdateSymLinksTask extends DefaultTask {
|
||||||
|
|
||||||
try (FileWriter commandFileWriter = new FileWriter( commandFile )) {
|
try (FileWriter commandFileWriter = new FileWriter( commandFile )) {
|
||||||
commandFileWriter.write( "cd " + serverBaseDir + "/stable\n" );
|
commandFileWriter.write( "cd " + serverBaseDir + "/stable\n" );
|
||||||
commandFileWriter.write( "rm orm\n" );
|
commandFileWriter.write( "-rm orm\n" );
|
||||||
commandFileWriter.write( String.format( Locale.ROOT, "ln -s ../orm/%s orm\n", releaseName ) );
|
commandFileWriter.write( String.format( Locale.ROOT, "ln -s ../orm/%s orm\n", releaseName ) );
|
||||||
|
|
||||||
commandFileWriter.write( "cd " + serverBaseDir + "/orm\n" );
|
commandFileWriter.write( "cd " + serverBaseDir + "/orm\n" );
|
||||||
commandFileWriter.write( "rm current\n" );
|
commandFileWriter.write( "-rm current\n" );
|
||||||
commandFileWriter.write( String.format( Locale.ROOT, "ln -s %s current\n", releaseName ) );
|
commandFileWriter.write( String.format( Locale.ROOT, "ln -s %s current\n", releaseName ) );
|
||||||
|
|
||||||
commandFileWriter.flush();
|
commandFileWriter.flush();
|
||||||
|
|
Loading…
Reference in New Issue