use of com.kyj.scm.manager.svn.java.JavaSVNManager in project Gargoyle by callakrsos.
the class ScmCommitCompositeExam method start.
/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
Properties properties = new Properties();
properties.put(JavaSVNManager.SVN_URL, "svn://10.40.41.49");
// properties.put(JavaSVNManager.SVN_USER_ID, "kyjun.kim");
// properties.put(JavaSVNManager.SVN_USER_PASS, "kyjun.kim");
FxSVNHistoryDataSupplier svnDataSupplier = new FxSVNHistoryDataSupplier(new JavaSVNManager(properties));
SvnChagnedCodeComposite svnChagnedCodeComposite = new SvnChagnedCodeComposite(svnDataSupplier);
ScmCommitComposite scmCommitComposite = new ScmCommitComposite(svnDataSupplier);
TabPane tabPane = new TabPane();
tabPane.getTabs().addAll(new Tab("Chagned Codes.", svnChagnedCodeComposite), new Tab("Commit Hist.", scmCommitComposite));
primaryStage.setScene(new Scene(tabPane));
primaryStage.show();
}
use of com.kyj.scm.manager.svn.java.JavaSVNManager in project Gargoyle by callakrsos.
the class SVNListTest method recently.
@Test
public void recently() {
Properties properties = new Properties();
properties.put(JavaSVNManager.SVN_URL, "http://localhost:11121/svn/sample2/");
properties.put(JavaSVNManager.SVN_USER_ID, "kyjun.kim");
properties.put(JavaSVNManager.SVN_USER_PASS, "kyjun.kim");
JavaSVNManager manager = new JavaSVNManager(properties);
List<SVNDirEntry> listEntry = manager.listEntry("/", "-1", System.err::println);
listEntry.forEach(System.out::println);
}
use of com.kyj.scm.manager.svn.java.JavaSVNManager in project Gargoyle by callakrsos.
the class CommandTest2 method setting.
@Before
public void setting() throws Exception {
Properties properties = new Properties();
properties.put(JavaSVNManager.SVN_URL, "https://dev.naver.com/svn/javafxvoeditor");
properties.put(JavaSVNManager.SVN_USER_ID, "");
properties.put(JavaSVNManager.SVN_USER_PASS, "");
new ProxyInitializable().initialize();
// properties.put(SVNManager.URL,
// "https://dev.naver.com/svn/javafxvoeditor");
manager = new JavaSVNManager(properties);
}
use of com.kyj.scm.manager.svn.java.JavaSVNManager in project Gargoyle by callakrsos.
the class SVNTreeView method menuPropertiesOnAction.
/**
* @작성자 : KYJ
* @작성일 : 2016. 8. 8.
* @param e
* @throws IOException
*/
public void menuPropertiesOnAction(ActionEvent e) {
TreeItem<SVNItem> selectedItem = getSelectionModel().getSelectedItem();
try {
if (selectedItem != null) {
SVNItem value = selectedItem.getValue();
Properties properties = value.getManager().getProperties();
FXMLLoader fxmlLoader = new FXMLLoader(SVNTreeView.class.getResource("AddNewSVNRepositoryView.fxml"));
BorderPane n = fxmlLoader.load();
Stage window = (Stage) getParent().getScene().getWindow();
Stage parent = (Stage) com.kyj.fx.voeditor.visual.util.ValueUtil.decode(window, window, SharedMemory.getPrimaryStage());
Stage stage = new Stage();
AddNewSVNRepositoryController controller = fxmlLoader.getController();
controller.setStage(stage);
controller.setProperties(properties);
stage.setScene(new Scene(n));
stage.setResizable(false);
stage.initOwner(parent);
stage.setTitle("Modify Location.");
stage.centerOnScreen();
stage.showAndWait();
Properties result = controller.getResult();
if (result != null) {
SVNItem newSVNItem = new SVNRepository(new JavaSVNManager(result));
TreeItem<SVNItem> createNode = scmTreeMaker.createNode(newSVNItem, null);
getRoot().getChildren().remove(selectedItem);
getRoot().getChildren().add(createNode);
}
}
} catch (Exception ex) {
LOGGER.error(ValueUtil.toString(ex));
}
}
use of com.kyj.scm.manager.svn.java.JavaSVNManager in project Gargoyle by callakrsos.
the class SVNTreeView method menuAddNewLocationOnAction.
/**
* 새로운 레포지토리를 추가한다.
*
* @작성자 : KYJ
* @작성일 : 2016. 4. 3.
* @param e
*/
public void menuAddNewLocationOnAction(ActionEvent e) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(SVNTreeView.class.getResource("AddNewSVNRepositoryView.fxml"));
BorderPane n = fxmlLoader.load();
Stage window = (Stage) getParent().getScene().getWindow();
Stage parent = (Stage) com.kyj.fx.voeditor.visual.util.ValueUtil.decode(window, window, SharedMemory.getPrimaryStage());
Stage stage = new Stage();
AddNewSVNRepositoryController controller = fxmlLoader.getController();
controller.setStage(stage);
stage.setScene(new Scene(n));
stage.setResizable(false);
stage.initOwner(parent);
stage.setTitle("Add New Location.");
stage.centerOnScreen();
stage.showAndWait();
Properties result = controller.getResult();
if (result != null) {
SVNItem newSVNItem = new SVNRepository(new JavaSVNManager(result));
TreeItem<SVNItem> createNode = scmTreeMaker.createNode(newSVNItem, null);
getRoot().getChildren().add(createNode);
}
} catch (IOException e1) {
LOGGER.error(ValueUtil.toString(e1));
}
}
Aggregations