Skip to content

Commit

Permalink
Fix #2632
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Sep 22, 2022
1 parent 7f67574 commit 2226721
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/ExportPlugin/pom.xml
Expand Up @@ -43,6 +43,11 @@
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-core-startup</artifactId>
<scope>provided</scope>
</dependency>

<!-- Tests -->
<dependency>
Expand Down
Expand Up @@ -250,7 +250,8 @@ private void writeMeta(XMLStreamWriter xmlWriter) throws Exception {
xmlWriter.writeAttribute(META_LASTMODIFIEDDATE, getDateTime());

xmlWriter.writeStartElement(META_CREATOR);
xmlWriter.writeCharacters("Gephi 0.9.3");

xmlWriter.writeCharacters(getCurrentVersion());
xmlWriter.writeEndElement();

xmlWriter.writeStartElement(META_DESCRIPTION);
Expand All @@ -261,6 +262,11 @@ private void writeMeta(XMLStreamWriter xmlWriter) throws Exception {
}
}

private String getCurrentVersion() {
return NbBundle.getBundle("org.netbeans.core.startup.Bundle").getString("currentVersion")
.replaceAll("( [0-9]{12})$", "");
}

private void writeAttributes(XMLStreamWriter xmlWriter, Table table) throws Exception {
List<Column> staticCols = new ArrayList<>();
List<Column> dynamicCols = new ArrayList<>();
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Expand Up @@ -399,6 +399,11 @@
<artifactId>org-netbeans-core-output2</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-core-startup</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-masterfs</artifactId>
Expand Down

0 comments on commit 2226721

Please sign in to comment.