Fix doc descriptor server url
This commit is contained in:
parent
81d6fef345
commit
26cd9d27ff
|
@ -27,6 +27,7 @@ public class DocumentationPublishing {
|
||||||
|
|
||||||
private final DirectoryProperty stagingDirectory;
|
private final DirectoryProperty stagingDirectory;
|
||||||
private final Property<String> docServerUrl;
|
private final Property<String> docServerUrl;
|
||||||
|
private final Property<String> docDescriptorServerUrl;
|
||||||
|
|
||||||
private final RegularFileProperty updatedJsonFile;
|
private final RegularFileProperty updatedJsonFile;
|
||||||
|
|
||||||
|
@ -43,6 +44,11 @@ public class DocumentationPublishing {
|
||||||
.property( String.class )
|
.property( String.class )
|
||||||
.convention( "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate/orm" );
|
.convention( "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate/orm" );
|
||||||
|
|
||||||
|
docDescriptorServerUrl = project.getObjects()
|
||||||
|
.property( String.class )
|
||||||
|
.convention( "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate" );
|
||||||
|
|
||||||
|
|
||||||
updatedJsonFile = project.getObjects()
|
updatedJsonFile = project.getObjects()
|
||||||
.fileProperty()
|
.fileProperty()
|
||||||
.convention( project.getLayout().getBuildDirectory().file( "doc-pub/orm.json" ) );
|
.convention( project.getLayout().getBuildDirectory().file( "doc-pub/orm.json" ) );
|
||||||
|
@ -64,6 +70,10 @@ public class DocumentationPublishing {
|
||||||
return docServerUrl;
|
return docServerUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Property<String> getDocDescriptorServerUrl() {
|
||||||
|
return docDescriptorServerUrl;
|
||||||
|
}
|
||||||
|
|
||||||
public DirectoryProperty getStagingDirectory() {
|
public DirectoryProperty getStagingDirectory() {
|
||||||
return stagingDirectory;
|
return stagingDirectory;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ public abstract class PublishDescriptorTask extends DefaultTask {
|
||||||
setGroup( "Release" );
|
setGroup( "Release" );
|
||||||
setDescription( "Publishes the documentation publication descriptor (JSON)" );
|
setDescription( "Publishes the documentation publication descriptor (JSON)" );
|
||||||
|
|
||||||
docServerUrl = config.getDocServerUrl();
|
docServerUrl = config.getDocDescriptorServerUrl();
|
||||||
jsonFile = config.getUpdatedJsonFile();
|
jsonFile = config.getUpdatedJsonFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue