This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rename; | |
import java.nio.file.Path; | |
import java.util.List; | |
import java.util.Map; | |
public class Input { | |
final Path root; | |
final Map<String, String> projectNames; | |
final String oldRootPackageName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# current version on asciidoctorj-1.6.0 branch https://github.com/asciidoctor/asciidoctorj/blob/asciidoctorj-1.6.0/.travis.yml | |
os: linux | |
dist: trusty | |
language: java | |
matrix: | |
include: | |
- jdk: oraclejdk9 | |
dist: trusty | |
- jdk: oraclejdk8 | |
- jdk: oraclejdk7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ".DS_Store" >> ~/Git/.gitignore_global | |
echo "._.DS_Store" >> ~/Git/.gitignore_global | |
echo "**/.DS_Store" >> ~/Git/.gitignore_global | |
echo "**/._.DS_Store" >> ~/Git/.gitignore_global | |
git config --global core.excludesfile ~/Git/.gitignore_global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>example</groupId> | |
<artifactId>sample-pom</artifactId> | |
<version>0.1</version> | |
<packaging>pom</packaging> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileFilter; | |
import java.io.FilenameFilter; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
import com.google.common.base.Charsets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileFilter; | |
import java.io.FilenameFilter; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
import com.google.common.base.Charsets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.StringWriter; | |
import org.eclipse.mylyn.wikitext.core.parser.MarkupParser; | |
import org.eclipse.mylyn.wikitext.core.parser.builder.HtmlDocumentBuilder; | |
import org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage; | |
import org.eclipse.mylyn.wikitext.markdown.core.MarkdownLanguage; | |
public class MarkdownHelloWorld { | |
public static void main(String[] args) { | |
StringBuilder sb = new StringBuilder(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Workaround using JSoup to obtain the desired behavior described in #858 for the HTML output. | |
//see https://github.com/asciidoctor/asciidoctor/issues/858 | |
static private Pattern pattern = Pattern.compile("Figure ([0-9]+)\\."); | |
/** | |
* Main method for the #858 workaround. | |
* | |
* @param doc | |
* JSoup document (type is {@link org.jsoup.nodes.Document}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* Copyright (c) 2015 BSI Business Systems Integration AG. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* BSI Business Systems Integration AG - initial API and implementation | |
******************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//see http://stackoverflow.com/q/27884534/91497 | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { |