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 Property<String> docServerUrl;
|
||||
private final Property<String> docDescriptorServerUrl;
|
||||
|
||||
private final RegularFileProperty updatedJsonFile;
|
||||
|
||||
|
@ -43,6 +44,11 @@ public class DocumentationPublishing {
|
|||
.property( String.class )
|
||||
.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()
|
||||
.fileProperty()
|
||||
.convention( project.getLayout().getBuildDirectory().file( "doc-pub/orm.json" ) );
|
||||
|
@ -64,6 +70,10 @@ public class DocumentationPublishing {
|
|||
return docServerUrl;
|
||||
}
|
||||
|
||||
public Property<String> getDocDescriptorServerUrl() {
|
||||
return docDescriptorServerUrl;
|
||||
}
|
||||
|
||||
public DirectoryProperty getStagingDirectory() {
|
||||
return stagingDirectory;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ public abstract class PublishDescriptorTask extends DefaultTask {
|
|||
setGroup( "Release" );
|
||||
setDescription( "Publishes the documentation publication descriptor (JSON)" );
|
||||
|
||||
docServerUrl = config.getDocServerUrl();
|
||||
docServerUrl = config.getDocDescriptorServerUrl();
|
||||
jsonFile = config.getUpdatedJsonFile();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue