Skip to content

Commit

Permalink
Update pref
Browse files Browse the repository at this point in the history
  • Loading branch information
ndhuu committed Apr 8, 2019
1 parent 5d019e5 commit 8b472c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ dependencies {
}

shadowJar {
archiveName = 'addressbook.jar'
archiveName = 'VolunCHeer.jar'

destinationDir = file("${buildDir}/jar/")
}
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class MainApp extends Application {

public static final Version VERSION = new Version(0, 6, 0, true);
public static final Version VERSION = new Version(1, 4, 0, true);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);

Expand All @@ -52,7 +52,7 @@ public static void main(String[] args) {

@Override
public void init() throws Exception {
logger.info("=============================[ Initializing AddressBook ]===========================");
logger.info("=============================[ Initializing VolunCHeer ]===========================");
super.init();

AppParameters appParameters = AppParameters.parse(getParameters());
Expand Down Expand Up @@ -87,10 +87,10 @@ private Model initModelManager(Storage storage, ReadOnlyUserPrefs userPrefs) {
}
initialData = addressBookOptional.orElseGet(SampleDataUtil::getSampleAddressBook);
} catch (DataConversionException e) {
logger.warning("Data file not in the correct format. Will be starting with an empty AddressBook");
logger.warning("Data file not in the correct format. Will be starting with an empty VolunCHeer");
initialData = new AddressBook();
} catch (IOException e) {
logger.warning("Problem while reading from the file. Will be starting with an empty AddressBook");
logger.warning("Problem while reading from the file. Will be starting with an empty VolunCHeer");
initialData = new AddressBook();
}

Expand Down Expand Up @@ -155,7 +155,7 @@ protected UserPrefs initPrefs(UserPrefsStorage storage) {
+ "Using default user prefs");
initializedPrefs = new UserPrefs();
} catch (IOException e) {
logger.warning("Problem while reading from the file. Will be starting with an empty AddressBook");
logger.warning("Problem while reading from the file. Will be starting with an empty VolunCHeer");
initializedPrefs = new UserPrefs();
}

Expand All @@ -171,13 +171,13 @@ protected UserPrefs initPrefs(UserPrefsStorage storage) {

@Override
public void start(Stage primaryStage) {
logger.info("Starting AddressBook " + MainApp.VERSION);
logger.info("Starting VolunCHeer " + MainApp.VERSION);
ui.start(primaryStage);
}

@Override
public void stop() {
logger.info("============================ [ Stopping Address Book ] =============================");
logger.info("============================ [ Stopping VolunCHeer ] =============================");
try {
storage.saveUserPrefs(model.getUserPrefs());
} catch (IOException e) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/UserPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class UserPrefs implements ReadOnlyUserPrefs {

private GuiSettings guiSettings = new GuiSettings();
private Path addressBookFilePath = Paths.get("data", "addressbook.json");
private Path addressBookFilePath = Paths.get("data", "VolunCHeer.json");

/**
* Creates a {@code UserPrefs} with default values.
Expand Down

0 comments on commit 8b472c9

Please sign in to comment.