Initial import.
11
.cvsignore
Normal file
|
@ -0,0 +1,11 @@
|
|||
build/**
|
||||
dist/**
|
||||
dist-signed/**
|
||||
DevSuite/**
|
||||
build
|
||||
dist
|
||||
dist-signed
|
||||
DevSuite
|
||||
buildnum.properties
|
||||
keystore.properties
|
||||
ftp.properties
|
43
LifeBlogger.iml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module version="4" relativePaths="true" type="JAVA_MODULE">
|
||||
<component name="ModuleRootManager" />
|
||||
<component name="NewModuleRootManager">
|
||||
<output url="file://$MODULE_DIR$/build/LifeBlogger" />
|
||||
<exclude-output />
|
||||
<exclude-exploded />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/lib/thinlet.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/lib/sqlite.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/lib/commons-net-1.2.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntryProperties />
|
||||
</component>
|
||||
</module>
|
||||
|
258
LifeBlogger.ipr
Normal file
|
@ -0,0 +1,258 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4" relativePaths="false">
|
||||
<component name="AntConfiguration">
|
||||
<defaultAnt bundledAnt="true" />
|
||||
<buildFile url="file://$PROJECT_DIR$/build.xml">
|
||||
<additionalClassPath />
|
||||
<antReference projectDefault="true" />
|
||||
<customJdkName value="" />
|
||||
<maximumHeapSize value="128" />
|
||||
<properties />
|
||||
</buildFile>
|
||||
<buildFile url="file://$PROJECT_DIR$/webstart.xml">
|
||||
<additionalClassPath />
|
||||
<antReference projectDefault="true" />
|
||||
<customJdkName value="" />
|
||||
<maximumHeapSize value="128" />
|
||||
<properties />
|
||||
</buildFile>
|
||||
</component>
|
||||
<component name="BSFConsole">
|
||||
<sendcommandbycontrolenter>false</sendcommandbycontrolenter>
|
||||
<restoresystemstreams>false</restoresystemstreams>
|
||||
<outwaitsforerr>false</outwaitsforerr>
|
||||
<errwaitsforout>false</errwaitsforout>
|
||||
<storedupsinrecentcommands>false</storedupsinrecentcommands>
|
||||
<moduleforclasspath />
|
||||
<includeoutputpath>false</includeoutputpath>
|
||||
<includetestsoutputpath>false</includetestsoutputpath>
|
||||
<languages>
|
||||
<language name="ant" engine="org.kos.bsfconsoleplugin.languages.AntConsoleBSFEngine" />
|
||||
<language name="beanshell" engine="bsh.util.BeanShellBSFEngine" />
|
||||
<language name="netrexx" engine="org.apache.bsf.engines.netrexx.NetRexxEngine" />
|
||||
<language name="xslt" engine="org.apache.bsf.engines.xslt.XSLTEngine" />
|
||||
<language name="beanbasic" engine="org.apache.bsf.engines.beanbasic.BeanBasicEngine" />
|
||||
<language name="bml" engine="org.apache.bml.ext.BMLEngine" />
|
||||
<language name="groovy" engine="org.codehaus.groovy.bsf.GroovyEngine" />
|
||||
<language name="jacl" engine="org.apache.bsf.engines.jacl.JaclEngine" />
|
||||
<language name="java" engine="org.apache.bsf.engines.java.JavaEngine" />
|
||||
<language name="javaclass" engine="org.apache.bsf.engines.javaclass.JavaClassEngine" />
|
||||
<language name="javascript" engine="org.apache.bsf.engines.javascript.JavaScriptEngine" />
|
||||
<language name="jpython" engine="org.apache.bsf.engines.jpython.JPythonEngine" />
|
||||
<language name="jscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
|
||||
<language name="judoscript" engine="com.judoscript.BSFJudoEngine" />
|
||||
<language name="jython" engine="org.apache.bsf.engines.jython.JythonEngine" />
|
||||
<language name="lotusscript" engine="org.apache.bsf.engines.lotusscript.LsEngine" />
|
||||
<language name="perl" engine="org.apache.bsf.engines.perl.PerlEngine" />
|
||||
<language name="perlscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
|
||||
<language name="pnuts" engine="pnuts.ext.PnutsBSFEngine" />
|
||||
<language name="ruby" engine="org.jruby.javasupport.bsf.JRubyEngine" />
|
||||
<language name="vbscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
|
||||
</languages>
|
||||
<startupscripts />
|
||||
<preferredrecentcommandsdividerlocations>
|
||||
<dividerlocationd language="beanshell" position="939" />
|
||||
</preferredrecentcommandsdividerlocations>
|
||||
<BSFConsoleSearchOptions searchfromcursor="false">
|
||||
<recentsearches />
|
||||
</BSFConsoleSearchOptions>
|
||||
</component>
|
||||
<component name="CodeStyleSettingsManager">
|
||||
<option name="PER_PROJECT_SETTINGS" />
|
||||
<option name="USE_PER_PROJECT_SETTINGS" value="false" />
|
||||
</component>
|
||||
<component name="CompilerConfiguration">
|
||||
<option name="DEFAULT_COMPILER" value="Javac" />
|
||||
<option name="CLEAR_OUTPUT_DIRECTORY" value="false" />
|
||||
<option name="DEPLOY_AFTER_MAKE" value="0" />
|
||||
<resourceExtensions>
|
||||
<entry name=".+\.(properties|xml|html|dtd|tld)" />
|
||||
<entry name=".+\.(gif|png|jpeg|jpg)" />
|
||||
</resourceExtensions>
|
||||
<wildcardResourcePatterns>
|
||||
<entry name="?*.properties" />
|
||||
<entry name="?*.xml" />
|
||||
<entry name="?*.html" />
|
||||
<entry name="?*.dtd" />
|
||||
<entry name="?*.tld" />
|
||||
<entry name="?*.gif" />
|
||||
<entry name="?*.png" />
|
||||
<entry name="?*.jpeg" />
|
||||
<entry name="?*.jpg" />
|
||||
</wildcardResourcePatterns>
|
||||
</component>
|
||||
<component name="DataSourceManagerImpl" />
|
||||
<component name="DependencyValidationManager" />
|
||||
<component name="EntryPointsManager">
|
||||
<entry_points />
|
||||
</component>
|
||||
<component name="ExportToHTMLSettings">
|
||||
<option name="PRINT_LINE_NUMBERS" value="false" />
|
||||
<option name="OPEN_IN_BROWSER" value="false" />
|
||||
<option name="OUTPUT_DIRECTORY" />
|
||||
</component>
|
||||
<component name="GUI Designer component loader factory" />
|
||||
<component name="JavacSettings">
|
||||
<option name="DEBUGGING_INFO" value="true" />
|
||||
<option name="GENERATE_NO_WARNINGS" value="false" />
|
||||
<option name="DEPRECATION" value="true" />
|
||||
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
|
||||
<option name="MAXIMUM_HEAP_SIZE" value="128" />
|
||||
<option name="USE_GENERICS_COMPILER" value="false" />
|
||||
</component>
|
||||
<component name="JavadocGenerationManager">
|
||||
<option name="OUTPUT_DIRECTORY" />
|
||||
<option name="OPTION_SCOPE" value="protected" />
|
||||
<option name="OPTION_HIERARCHY" value="true" />
|
||||
<option name="OPTION_NAVIGATOR" value="true" />
|
||||
<option name="OPTION_INDEX" value="true" />
|
||||
<option name="OPTION_SEPARATE_INDEX" value="true" />
|
||||
<option name="OPTION_DOCUMENT_TAG_USE" value="true" />
|
||||
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="true" />
|
||||
<option name="OPTION_DOCUMENT_TAG_VERSION" value="true" />
|
||||
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
|
||||
<option name="OPTION_DEPRECATED_LIST" value="true" />
|
||||
<option name="OTHER_OPTIONS" />
|
||||
<option name="HEAP_SIZE" />
|
||||
<option name="OPEN_IN_BROWSER" value="true" />
|
||||
</component>
|
||||
<component name="JikesSettings">
|
||||
<option name="JIKES_PATH" value="" />
|
||||
<option name="DEBUGGING_INFO" value="true" />
|
||||
<option name="DEPRECATION" value="true" />
|
||||
<option name="GENERATE_NO_WARNINGS" value="false" />
|
||||
<option name="IS_EMACS_ERRORS_MODE" value="true" />
|
||||
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
|
||||
</component>
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/LifeBlogger.iml" filepath="$PROJECT_DIR$/LifeBlogger.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" assert-keyword="false" jdk-15="false" project-jdk-name="1.4.x" />
|
||||
<component name="Regex">
|
||||
<option name="pos1" value="218" />
|
||||
<option name="pos2" value="218" />
|
||||
<option name="pos3" value="162" />
|
||||
<option name="pos4" value="444" />
|
||||
<option name="pos5" value="162" />
|
||||
<option name="autoUpdate" value="true" />
|
||||
</component>
|
||||
<component name="RmicSettings">
|
||||
<option name="IS_EANABLED" value="false" />
|
||||
<option name="DEBUGGING_INFO" value="true" />
|
||||
<option name="GENERATE_NO_WARNINGS" value="false" />
|
||||
<option name="GENERATE_IIOP_STUBS" value="false" />
|
||||
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
|
||||
</component>
|
||||
<component name="libraryTable" />
|
||||
<component name="uidesigner-configuration">
|
||||
<option name="INSTRUMENT_CLASSES" value="true" />
|
||||
<option name="COPY_FORMS_RUNTIME_TO_OUTPUT" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
|
566
LifeBlogger.iws
Normal file
|
@ -0,0 +1,566 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4" relativePaths="false">
|
||||
<component name="AspectsView" />
|
||||
<component name="BookmarkManager" />
|
||||
<component name="CheckinPanelState" />
|
||||
<component name="Commander">
|
||||
<leftPanel />
|
||||
<rightPanel />
|
||||
<splitter proportion="0.5" />
|
||||
</component>
|
||||
<component name="CompilerWorkspaceConfiguration">
|
||||
<option name="COMPILE_IN_BACKGROUND" value="false" />
|
||||
<option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true" />
|
||||
<option name="CLOSE_MESSAGE_VIEW_IF_SUCCESS" value="true" />
|
||||
</component>
|
||||
<component name="Cvs2Configuration">
|
||||
<option name="ON_FILE_ADDING" value="0" />
|
||||
<option name="ON_FILE_REMOVING" value="0" />
|
||||
<option name="PRUNE_EMPTY_DIRECTORIES" value="true" />
|
||||
<option name="SHOW_UPDATE_OPTIONS" value="true" />
|
||||
<option name="SHOW_ADD_OPTIONS" value="true" />
|
||||
<option name="SHOW_REMOVE_OPTIONS" value="true" />
|
||||
<option name="MERGING_MODE" value="0" />
|
||||
<option name="MERGE_WITH_BRANCH1_NAME" value="HEAD" />
|
||||
<option name="MERGE_WITH_BRANCH2_NAME" value="HEAD" />
|
||||
<option name="RESET_STICKY" value="false" />
|
||||
<option name="CREATE_NEW_DIRECTORIES" value="true" />
|
||||
<option name="DEFAULT_TEXT_FILE_SUBSTITUTION" value="kv" />
|
||||
<option name="PROCESS_UNKNOWN_FILES" value="false" />
|
||||
<option name="PROCESS_DELETED_FILES" value="false" />
|
||||
<option name="SHOW_EDIT_DIALOG" value="false" />
|
||||
<option name="RESERVED_EDIT" value="false" />
|
||||
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
||||
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
|
||||
<option name="CHECKOUT_DATE_OR_REVISION_SETTINGS">
|
||||
<value>
|
||||
<option name="BRANCH" value="" />
|
||||
<option name="DATE" value="" />
|
||||
<option name="USE_BRANCH" value="false" />
|
||||
<option name="USE_DATE" value="false" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="UPDATE_DATE_OR_REVISION_SETTINGS">
|
||||
<value>
|
||||
<option name="BRANCH" value="" />
|
||||
<option name="DATE" value="" />
|
||||
<option name="USE_BRANCH" value="false" />
|
||||
<option name="USE_DATE" value="false" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="SHOW_CHANGES_REVISION_SETTINGS">
|
||||
<value>
|
||||
<option name="BRANCH" value="" />
|
||||
<option name="DATE" value="" />
|
||||
<option name="USE_BRANCH" value="false" />
|
||||
<option name="USE_DATE" value="false" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="SHOW_OUTPUT" value="false" />
|
||||
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
||||
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
||||
<option name="ADD_WATCH_INDEX" value="0" />
|
||||
<option name="REMOVE_WATCH_INDEX" value="0" />
|
||||
<option name="UPDATE_KEYWORD_SUBSTITUTION" />
|
||||
<option name="MAKE_NEW_FILES_READONLY" value="false" />
|
||||
<option name="SHOW_CORRUPTED_PROJECT_FILES" value="0" />
|
||||
<option name="TAG_AFTER_FILE_COMMIT" value="false" />
|
||||
<option name="TAG_AFTER_FILE_COMMIT_NAME" value="" />
|
||||
<option name="TAG_AFTER_PROJECT_COMMIT" value="false" />
|
||||
<option name="TAG_AFTER_PROJECT_COMMIT_NAME" value="" />
|
||||
<option name="PUT_FOCUS_INTO_COMMENT" value="true" />
|
||||
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
|
||||
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="" />
|
||||
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
|
||||
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
||||
</component>
|
||||
<component name="CvsTabbedWindow" />
|
||||
<component name="DaemonCodeAnalyzer">
|
||||
<disable_hints />
|
||||
</component>
|
||||
<component name="DebuggerManager">
|
||||
<line_breakpoints />
|
||||
<exception_breakpoints>
|
||||
<breakpoint_any>
|
||||
<option name="NOTIFY_CAUGHT" value="true" />
|
||||
<option name="NOTIFY_UNCAUGHT" value="true" />
|
||||
<option name="ENABLED" value="false" />
|
||||
<option name="SUSPEND_VM" value="true" />
|
||||
<option name="LOG_ENABLED" value="false" />
|
||||
<option name="LOG_EXPRESSION_ENABLED" value="false" />
|
||||
<option name="COUNT_FILTER_ENABLED" value="false" />
|
||||
<option name="COUNT_FILTER" value="0" />
|
||||
<option name="CONDITION_ENABLED" value="false" />
|
||||
<option name="CLASS_FILTERS_ENABLED" value="false" />
|
||||
<option name="INSTANCE_FILTERS_ENABLED" value="false" />
|
||||
<option name="myCondition" value="" />
|
||||
<option name="myLogMessage" value="" />
|
||||
</breakpoint_any>
|
||||
</exception_breakpoints>
|
||||
<field_breakpoints />
|
||||
<method_breakpoints />
|
||||
</component>
|
||||
<component name="ErrorTreeViewConfiguration">
|
||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
<option name="HIDE_WARNINGS" value="false" />
|
||||
</component>
|
||||
<component name="FileEditorManager" split-orientation="vertical" split-proportion="0.5">
|
||||
<first-group selected-file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeMediaObject.java">
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeBlog.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="54" column="22" selection-start="2017" selection-end="2017" vertical-scroll-proportion="0.22568807">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeBlogger.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="136" column="23" selection-start="3661" selection-end="3661" vertical-scroll-proportion="0.2440367">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/ReleaseInfo.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="15" column="44" selection-start="434" selection-end="434" vertical-scroll-proportion="0.22568807">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeFTP.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="85" column="26" selection-start="2834" selection-end="2834" vertical-scroll-proportion="0.22568807">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeMediaObjResponse.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="27" column="13" selection-start="1401" selection-end="1401" vertical-scroll-proportion="0.034862384">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeMediaObject.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="120" column="26" selection-start="3692" selection-end="3692" vertical-scroll-proportion="2.3486238">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</first-group>
|
||||
<second-group />
|
||||
</component>
|
||||
<component name="HierarchyBrowserManager">
|
||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
<option name="SORT_ALPHABETICALLY" value="false" />
|
||||
<option name="HIDE_CLASSES_WHERE_METHOD_NOT_IMPLEMENTED" value="false" />
|
||||
</component>
|
||||
<component name="InspectionManager">
|
||||
<option name="AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
<option name="SPLITTER_PROPORTION" value="0.5" />
|
||||
<profile name="Default" />
|
||||
</component>
|
||||
<component name="J2EEProjectPane" />
|
||||
<component name="NamedScopeManager" />
|
||||
<component name="PackagesPane">
|
||||
<expanded_node url="net.thauvin.lifeblogger" module="LifeBlogger" type="package" />
|
||||
<expanded_node url="net.thauvin" module="LifeBlogger" type="package" />
|
||||
<expanded_node url="net" module="LifeBlogger" type="package" />
|
||||
<expanded_node url="" module="LifeBlogger" type="module" />
|
||||
</component>
|
||||
<component name="ProjectPane">
|
||||
<expanded_node url="file://$PROJECT_DIR$" module="LifeBlogger" type="directory" />
|
||||
<expanded_node url="" module="LifeBlogger" type="module" />
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator currentView="ProjectPane" splitterProportion="0.5">
|
||||
<flattenPackages />
|
||||
<showMembers />
|
||||
<showModules />
|
||||
<showLibraryContents />
|
||||
<hideEmptyPackages />
|
||||
<showStructure ProjectPane="false" />
|
||||
<autoscrollToSource />
|
||||
<autoscrollFromSource />
|
||||
</navigator>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="MemberChooser.copyJavadoc" value="false" />
|
||||
<property name="GenerateAntBuildDialog.generateSingleFile" value="true" />
|
||||
<property name="GoToClass.includeLibraries" value="false" />
|
||||
<property name="MemberChooser.showClasses" value="true" />
|
||||
<property name="MemberChooser.sorted" value="false" />
|
||||
<property name="GoToFile.includeJavaFiles" value="false" />
|
||||
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
|
||||
<property name="GenerateAntBuildDialog.enableUiFormCompile" value="false" />
|
||||
<property name="GenerateAntBuildDialog.backupFiles" value="false" />
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<activeType name="Application" />
|
||||
<configuration selected="false" default="true" type="WebLogic Instance" factoryName="Local">
|
||||
<option name="WORKING_DIRECTORY" />
|
||||
<option name="HOST" value="localhost" />
|
||||
<option name="PORT" value="7001" />
|
||||
<option name="LOCAL" value="true" />
|
||||
<option name="OPEN_IN_BROWSER" value="true" />
|
||||
<option name="OPEN_IN_BROWSER_URL" value="/" />
|
||||
<option name="COMMON_VM_ARGUMENTS" value="" />
|
||||
<option name="DOMAIN_PATH" value="" />
|
||||
<option name="USER" value="weblogic" />
|
||||
<option name="PASSWORD" value="weblogic" />
|
||||
<option name="SERVER_NAME" value="myserver" />
|
||||
<option name="DOMAIN_NAME" value="mydomain" />
|
||||
</configuration>
|
||||
<configuration selected="false" default="true" type="JUnit" factoryName="JUnit">
|
||||
<module name="" />
|
||||
<option name="PACKAGE_NAME" />
|
||||
<option name="MAIN_CLASS_NAME" />
|
||||
<option name="METHOD_NAME" />
|
||||
<option name="TEST_OBJECT" />
|
||||
<option name="VM_PARAMETERS" />
|
||||
<option name="PARAMETERS" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="ADDITIONAL_CLASS_PATH" />
|
||||
<option name="TEST_SEARCH_SCOPE">
|
||||
<value defaultName="wholeProject" />
|
||||
</option>
|
||||
</configuration>
|
||||
<configuration selected="false" default="true" type="Remote" factoryName="Remote">
|
||||
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
||||
<option name="SERVER_MODE" value="false" />
|
||||
<option name="SHMEM_ADDRESS" value="javadebug" />
|
||||
<option name="HOST" value="localhost" />
|
||||
<option name="PORT" value="5005" />
|
||||
</configuration>
|
||||
<configuration selected="false" default="true" type="Application" factoryName="Application">
|
||||
<option name="MAIN_CLASS_NAME" />
|
||||
<option name="VM_PARAMETERS" />
|
||||
<option name="PROGRAM_PARAMETERS" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<module name="" />
|
||||
</configuration>
|
||||
<configuration selected="false" default="true" type="Applet" factoryName="Applet">
|
||||
<module name="" />
|
||||
<option name="MAIN_CLASS_NAME" />
|
||||
<option name="HTML_FILE_NAME" />
|
||||
<option name="HTML_USED" value="false" />
|
||||
<option name="WIDTH" value="400" />
|
||||
<option name="HEIGHT" value="300" />
|
||||
<option name="POLICY_FILE" value="C:/IntelliJ-IDEA/bin/appletviewer.policy" />
|
||||
<option name="VM_PARAMETERS" />
|
||||
</configuration>
|
||||
<configuration selected="true" default="false" name="LifeBlogger" type="Application" factoryName="Application">
|
||||
<option name="MAIN_CLASS_NAME" value="net.thauvin.lifeblogger.LifeBlogger" />
|
||||
<option name="VM_PARAMETERS" value="-Djava.library.path=D:\projects\java\LifeBlogger\libexec" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
|
||||
<module name="LifeBlogger" />
|
||||
<RunnerSettings RunnerId="Run" />
|
||||
<RunnerSettings RunnerId="Debug">
|
||||
<option name="DEBUG_PORT" value="1127" />
|
||||
<option name="TRANSPORT" value="0" />
|
||||
<option name="LOCAL" value="false" />
|
||||
</RunnerSettings>
|
||||
<ConfigurationWrapper RunnerId="Run" />
|
||||
<ConfigurationWrapper RunnerId="Debug" />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SelectInManager" />
|
||||
<component name="StarteamConfiguration">
|
||||
<option name="SERVER" value="" />
|
||||
<option name="PORT" value="49201" />
|
||||
<option name="USER" value="" />
|
||||
<option name="PASSWORD" value="" />
|
||||
<option name="PROJECT" value="" />
|
||||
<option name="VIEW" value="" />
|
||||
<option name="ALTERNATIVE_WORKING_PATH" value="" />
|
||||
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
|
||||
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
|
||||
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="" />
|
||||
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
|
||||
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
||||
</component>
|
||||
<component name="StructuralSearchPlugin" />
|
||||
<component name="StructureViewFactory">
|
||||
<option name="SORT_MODE" value="0" />
|
||||
<option name="GROUP_INHERITED" value="true" />
|
||||
<option name="AUTOSCROLL_MODE" value="true" />
|
||||
<option name="SHOW_FIELDS" value="true" />
|
||||
<option name="AUTOSCROLL_FROM_SOURCE" value="false" />
|
||||
<option name="GROUP_GETTERS_AND_SETTERS" value="true" />
|
||||
<option name="SHOW_INHERITED" value="false" />
|
||||
<option name="HIDE_NOT_PUBLIC" value="false" />
|
||||
</component>
|
||||
<component name="TodoView" selected-index="0">
|
||||
<todo-panel id="selected-file">
|
||||
<are-packages-shown value="false" />
|
||||
<flatten-packages value="false" />
|
||||
<is-autoscroll-to-source value="true" />
|
||||
</todo-panel>
|
||||
<todo-panel id="all">
|
||||
<are-packages-shown value="true" />
|
||||
<flatten-packages value="false" />
|
||||
<is-autoscroll-to-source value="true" />
|
||||
</todo-panel>
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-2" y="-3" width="1032" height="776" extended-state="0" />
|
||||
<editor active="false" />
|
||||
<layout>
|
||||
<window_info id="Properties File Structure" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.16428572" order="4" />
|
||||
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
|
||||
<window_info id="Regex" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33024693" order="9" />
|
||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
|
||||
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.35306123" order="0" />
|
||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33024693" order="1" />
|
||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
|
||||
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33024693" order="10" />
|
||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.39969134" order="6" />
|
||||
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="11" />
|
||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.13163266" order="1" />
|
||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33024693" order="2" />
|
||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
|
||||
<window_info id="CVS File View" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
|
||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.39969134" order="4" />
|
||||
<window_info id="BSFConsole" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33024693" order="12" />
|
||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="0" />
|
||||
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
|
||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
|
||||
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
|
||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="VCS.FileViewConfiguration">
|
||||
<option name="SELECTED_STATUSES" value="DEFAULT" />
|
||||
<option name="SELECTED_COLUMNS" value="DEFAULT" />
|
||||
<option name="SHOW_FILTERS" value="true" />
|
||||
<option name="CUSTOMIZE_VIEW" value="true" />
|
||||
<option name="SHOW_FILE_HISTORY_AS_TREE" value="true" />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="ACTIVE_VCS_NAME" value="CVS" />
|
||||
<option name="STATE" value="0" />
|
||||
</component>
|
||||
<component name="VssConfiguration">
|
||||
<CheckoutOptions>
|
||||
<option name="COMMENT" value="" />
|
||||
<option name="DO_NOT_GET_LATEST_VERSION" value="false" />
|
||||
<option name="REPLACE_WRITABLE" value="false" />
|
||||
<option name="RECURSIVE" value="false" />
|
||||
</CheckoutOptions>
|
||||
<CheckinOptions>
|
||||
<option name="COMMENT" value="" />
|
||||
<option name="KEEP_CHECKED_OUT" value="false" />
|
||||
<option name="RECURSIVE" value="false" />
|
||||
</CheckinOptions>
|
||||
<AddOptions>
|
||||
<option name="COMMENT" value="" />
|
||||
<option name="STORE_ONLY_LATEST_VERSION" value="false" />
|
||||
<option name="CHECK_OUT_IMMEDIATELY" value="false" />
|
||||
<option name="FILE_TYPE" value="0" />
|
||||
</AddOptions>
|
||||
<UndocheckoutOptions>
|
||||
<option name="MAKE_WRITABLE" value="false" />
|
||||
<option name="REPLACE_LOCAL_COPY" value="0" />
|
||||
<option name="RECURSIVE" value="false" />
|
||||
</UndocheckoutOptions>
|
||||
<GetOptions>
|
||||
<option name="REPLACE_WRITABLE" value="0" />
|
||||
<option name="MAKE_WRITABLE" value="false" />
|
||||
<option name="RECURSIVE" value="false" />
|
||||
</GetOptions>
|
||||
<option name="CLIENT_PATH" value="" />
|
||||
<option name="SRCSAFEINI_PATH" value="" />
|
||||
<option name="USER_NAME" value="" />
|
||||
<option name="PWD" value="" />
|
||||
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
|
||||
<option name="SHOW_ADD_OPTIONS" value="true" />
|
||||
<option name="VSS_IS_INITIALIZED" value="false" />
|
||||
<option name="SHOW_UNDOCHECKOUT_OPTIONS" value="true" />
|
||||
<option name="SHOW_DIFF_OPTIONS" value="true" />
|
||||
<option name="SHOW_GET_OPTIONS" value="true" />
|
||||
<option name="REUSE_LAST_COMMENT" value="false" />
|
||||
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
|
||||
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
|
||||
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="" />
|
||||
<option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
|
||||
<option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
||||
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
||||
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
||||
</component>
|
||||
<component name="antWorkspaceConfiguration">
|
||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
<option name="FILTER_TARGETS" value="false" />
|
||||
<buildFile url="file://$PROJECT_DIR$/build.xml">
|
||||
<antCommandLine value="" />
|
||||
<runInBackground value="false" />
|
||||
<targetFilters>
|
||||
<filter targetName="jar" isVisible="false" />
|
||||
<filter targetName="compile" isVisible="false" />
|
||||
<filter targetName="init" isVisible="false" />
|
||||
<filter targetName="build" isVisible="true" />
|
||||
<filter targetName="clean" isVisible="false" />
|
||||
<filter targetName="run" isVisible="false" />
|
||||
</targetFilters>
|
||||
<treeView value="true" />
|
||||
<verbose value="true" />
|
||||
<viewClosedWhenNoErrors value="false" />
|
||||
</buildFile>
|
||||
<buildFile url="file://$PROJECT_DIR$/webstart.xml">
|
||||
<antCommandLine value="" />
|
||||
<runInBackground value="false" />
|
||||
<targetFilters />
|
||||
<treeView value="true" />
|
||||
<verbose value="true" />
|
||||
<viewClosedWhenNoErrors value="false" />
|
||||
</buildFile>
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="jar://C:/j2sdk1.4.2_05/src.zip!/java/util/prefs/AbstractPreferences.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="614" column="24" selection-start="27794" selection-end="27794" vertical-scroll-proportion="0.37922078">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://C:/j2sdk1.4.2_05/src.zip!/java/util/prefs/Base64.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="37" column="26" selection-start="1053" selection-end="1053" vertical-scroll-proportion="0.42079207">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="jar://$PROJECT_DIR$/lib/thinlet.jar!/thinlet/Thinlet.class">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="438" column="0" selection-start="14804" selection-end="14804" vertical-scroll-proportion="0.4293948">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/about.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="1" column="38" selection-start="77" selection-end="77" vertical-scroll-proportion="0.046961326">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/transfer.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="1" column="135" selection-start="174" selection-end="174" vertical-scroll-proportion="0.048991356">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/main.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="7" column="67" selection-start="313" selection-end="313" vertical-scroll-proportion="0.3429395">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/metaweblog.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="4" column="21" selection-start="308" selection-end="308" vertical-scroll-proportion="0.19596542">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/Base64.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="2" column="0" selection-start="34" selection-end="34" vertical-scroll-proportion="0.11258278">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/webstart.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="7" column="107" selection-start="270" selection-end="270" vertical-scroll-proportion="0.20411664">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeBlog.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="54" column="22" selection-start="2017" selection-end="2017" vertical-scroll-proportion="0.22568807">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeBlogger.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="136" column="23" selection-start="3661" selection-end="3661" vertical-scroll-proportion="0.2440367">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/ReleaseInfo.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="15" column="44" selection-start="434" selection-end="434" vertical-scroll-proportion="0.22568807">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeFTP.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="85" column="26" selection-start="2834" selection-end="2834" vertical-scroll-proportion="0.22568807">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeMediaObject.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="120" column="26" selection-start="3692" selection-end="3692" vertical-scroll-proportion="2.3486238">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/lifeblogger/LifeMediaObjResponse.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="27" column="13" selection-start="1401" selection-end="1401" vertical-scroll-proportion="0.034862384">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
</project>
|
||||
|
25
LifeBlogger.jnlp
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jnlp spec="1.0+" codebase="http://www.thauvin.net/erik/download/lifeblogger/" href="LifeBlogger.jnlp">
|
||||
<information>
|
||||
<title>LifeBlogger</title>
|
||||
<vendor>Erik C. Thauvin</vendor>
|
||||
<homepage href="http://www.thauvin.net/erik/lifeblogger/"/>
|
||||
<description>Posts your Lifeblog favorites to your blog</description>
|
||||
<description kind="tooltip">Posts your Lifeblog favorites to your blog</description>
|
||||
<icon href="icon64.gif"/>
|
||||
<icon href="logo.gif" kind="splash"/>
|
||||
<offline-allowed/>
|
||||
</information>
|
||||
<security>
|
||||
<all-permissions/>
|
||||
</security>
|
||||
<resources os="Windows">
|
||||
<j2se version="1.4+"/>
|
||||
<jar href="LifeBlogger.jar"/>
|
||||
<jar href="commons-net-1.2.2.jar"/>
|
||||
<jar href="sqlite.jar"/>
|
||||
<jar href="thinlet.jar"/>
|
||||
<nativelib href="sqlite_jni.dll"/>
|
||||
</resources>
|
||||
<application-desc main-class="net.thauvin.lifeblogger.LifeBlogger"/>
|
||||
</jnlp>
|
BIN
ant/jreleaseinfo-1.2.0.jar
Normal file
BIN
ant/roxes-ant-tasks-1.2-2004-01-30.jar
Normal file
17
build.properties
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Project
|
||||
proj.name=LifeBlogger
|
||||
proj.version=0.1.0
|
||||
proj.release=false
|
||||
proj.package=net.thauvin.lifeblogger
|
||||
proj.run=${proj.package}.LifeBlogger
|
||||
|
||||
# Locations
|
||||
path.build=build
|
||||
path.src=src
|
||||
path.dist=dist
|
||||
path.lib=lib
|
||||
path.libexec=libexec
|
||||
path.ant=ant
|
||||
|
||||
# Jar
|
||||
jar.name=${proj.name}
|
55
build.xml
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="LifeBlogger" default="build" basedir=".">
|
||||
<property file="${basedir}/build.properties"/>
|
||||
<property name="path.jar.build" value="${path.build}/${jar.name}"/>
|
||||
<path id="path.source">
|
||||
<pathelement location="${path.src}"/>
|
||||
</path>
|
||||
<path id="path.class">
|
||||
<fileset dir="${path.lib}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<path id="ant.class">
|
||||
<fileset dir="${path.ant}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<taskdef name="jreleaseinfo" classname="ch.oscg.jreleaseinfo.anttask.JReleaseInfoAntTask" classpathref="ant.class"/>
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
<mkdir dir="${path.build}"/>
|
||||
<mkdir dir="${path.dist}"/>
|
||||
</target>
|
||||
<target name="compile" depends="init" description="Compiles sources">
|
||||
<jreleaseinfo targetDir="${basedir}/${path.src}" className="ReleaseInfo" packageName="${proj.package}" project="${proj.name}" version="${proj.version}" buildnumfile="${basedir}/buildnum.properties" buildnumproperty="buildnum">
|
||||
</jreleaseinfo>
|
||||
<mkdir dir="${path.jar.build}"/>
|
||||
<javac sourcepathref="path.source" classpathref="path.class" destdir="${path.jar.build}" debug="off" deprecation="on">
|
||||
<src refid="path.source"/>
|
||||
</javac>
|
||||
</target>
|
||||
<target name="build" depends="clean,jar" description="Rebuilds project"/>
|
||||
<target name="jar" depends="compile" description="Builds the JAR">
|
||||
<copy todir="${path.jar.build}">
|
||||
<fileset dir="${path.src}" includes="*,*/**" excludes="**/*.java"/>
|
||||
</copy>
|
||||
<jar destfile="${basedir}/${path.dist}/${jar.name}.jar" basedir="${path.jar.build}" excludes="**/.dependency-info/**"/>
|
||||
</target>
|
||||
<target name="src" description="Builds the source archive">
|
||||
<zip zipfile="${path.dist}/${jar.name}-src.zip">
|
||||
<zipfileset dir="${basedir}" prefix="${jar.name}" defaultexcludes="yes" excludesfile="${basedir}/.cvsignore"/>
|
||||
</zip>
|
||||
</target>
|
||||
<target name="run" depends="jar" description="Run the program">
|
||||
<java classpathref="path.class" classpath="${basedir}/${path.dist}/${jar.name}.jar" classname="${proj.run}" fork="yes">
|
||||
<jvmarg value="-Djava.library.path="${basedir}/${path.libexec}""/>
|
||||
</java>
|
||||
</target>
|
||||
<target name="clean" depends="init" description="Removes classses and javadoc">
|
||||
<delete quiet="true" includeEmptyDirs="true">
|
||||
<fileset dir="${path.build}" includes="*,*/**"/>
|
||||
<fileset dir="${path.dist}" includes="*,*/**"/>
|
||||
</delete>
|
||||
</target>
|
||||
</project>
|
BIN
images/icon64.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
images/logo.gif
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
lib/commons-net-1.2.2.jar
Normal file
BIN
lib/sqlite.jar
Normal file
BIN
lib/thinlet.jar
Normal file
BIN
libexec/sqlite_jni.dll
Normal file
BIN
src/icon/error.gif
Normal file
After Width: | Height: | Size: 609 B |
BIN
src/icon/exit.gif
Normal file
After Width: | Height: | Size: 91 B |
BIN
src/icon/go.gif
Normal file
After Width: | Height: | Size: 128 B |
BIN
src/icon/help.gif
Normal file
After Width: | Height: | Size: 166 B |
BIN
src/icon/icon.gif
Normal file
After Width: | Height: | Size: 642 B |
BIN
src/icon/image.gif
Normal file
After Width: | Height: | Size: 353 B |
BIN
src/icon/info.gif
Normal file
After Width: | Height: | Size: 229 B |
BIN
src/icon/logo.gif
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
src/icon/movie.gif
Normal file
After Width: | Height: | Size: 105 B |
BIN
src/icon/refresh.gif
Normal file
After Width: | Height: | Size: 147 B |
BIN
src/icon/text.gif
Normal file
After Width: | Height: | Size: 172 B |
BIN
src/icon/thinlet.gif
Normal file
After Width: | Height: | Size: 712 B |
BIN
src/icon/wait.gif
Normal file
After Width: | Height: | Size: 288 B |
1343
src/net/thauvin/lifeblogger/Base64.java
Normal file
224
src/net/thauvin/lifeblogger/LifeBlog.java
Normal file
|
@ -0,0 +1,224 @@
|
|||
/*
|
||||
* @(#)LifeBlog.java
|
||||
*
|
||||
* Copyright (c) 2004, Erik C. Thauvin (http://www.thauvin.net/erik/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* Neither the name of the authors nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.lifeblogger;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
/**
|
||||
* The <code>LifeBlog</code> abstract class provides the base functionality used by all blog ({@link LifeFTP}, {@link
|
||||
* LifeMediaObject}, etc.) actions.
|
||||
*
|
||||
* @author Erik C. Thauvin
|
||||
* @version $Revision$, $Date$
|
||||
*
|
||||
* @created Jul 20, 2004
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class LifeBlog extends Thread
|
||||
{
|
||||
/**
|
||||
* The file to upload/store.
|
||||
*/
|
||||
private final File _file;
|
||||
|
||||
/**
|
||||
* The Thinlet instance.
|
||||
*/
|
||||
private final LifeBlogger _thinlet;
|
||||
|
||||
/**
|
||||
* The Transfer dialog.
|
||||
*/
|
||||
private final Object _dialog;
|
||||
|
||||
/**
|
||||
* The file name.
|
||||
*/
|
||||
private final String _filename;
|
||||
|
||||
/**
|
||||
* The host name.
|
||||
*/
|
||||
private final String _host;
|
||||
|
||||
/**
|
||||
* The login name.
|
||||
*/
|
||||
private final String _login;
|
||||
|
||||
/**
|
||||
* The password.
|
||||
*/
|
||||
private final String _password;
|
||||
|
||||
/**
|
||||
* The path/location.
|
||||
*/
|
||||
private final String _path;
|
||||
|
||||
/**
|
||||
* Creates a new LifeBlog object.
|
||||
*
|
||||
* @param thinlet The Thinlet instance.
|
||||
* @param host The host.
|
||||
* @param login The login name.
|
||||
* @param password The password.
|
||||
* @param path The path/location.
|
||||
* @param filename The name of the file to upload/store.
|
||||
* @param file The file to upload.
|
||||
*
|
||||
* @throws IOException If an error occurs while creating the object.
|
||||
*/
|
||||
protected LifeBlog(LifeBlogger thinlet, String host, String login, String password, String path, String filename,
|
||||
File file)
|
||||
throws IOException
|
||||
{
|
||||
_thinlet = thinlet;
|
||||
_dialog = getThinlet().parse("transfer.xml");
|
||||
_host = host;
|
||||
_login = login;
|
||||
_password = password;
|
||||
_path = path;
|
||||
_filename = filename;
|
||||
_file = file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the action.
|
||||
*
|
||||
* @see Thread#run()
|
||||
*/
|
||||
public abstract void run();
|
||||
|
||||
/**
|
||||
* Returns the Transfer dialog.
|
||||
*
|
||||
* @return The dialog.
|
||||
*/
|
||||
protected final Object getDialog()
|
||||
{
|
||||
return _dialog;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the file.
|
||||
*
|
||||
* @return The file.
|
||||
*/
|
||||
protected final File getFile()
|
||||
{
|
||||
return _file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the file name.
|
||||
*
|
||||
* @return The file name.
|
||||
*/
|
||||
protected final String getFilename()
|
||||
{
|
||||
return _filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the host name.
|
||||
*
|
||||
* @return The host.
|
||||
*/
|
||||
protected final String getHost()
|
||||
{
|
||||
return _host;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the login name.
|
||||
*
|
||||
* @return The login.
|
||||
*/
|
||||
protected final String getLogin()
|
||||
{
|
||||
return _login;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the password.
|
||||
*
|
||||
* @return The password.
|
||||
*/
|
||||
protected final String getPassword()
|
||||
{
|
||||
return _password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the path/location.
|
||||
*
|
||||
* @return The path.
|
||||
*/
|
||||
protected final String getPath()
|
||||
{
|
||||
return _path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Thinlet instance.
|
||||
*
|
||||
* @return The Thinlet.
|
||||
*/
|
||||
protected final LifeBlogger getThinlet()
|
||||
{
|
||||
return _thinlet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays an alert message.
|
||||
*
|
||||
* @param message The message to display.
|
||||
*/
|
||||
protected final void alert(String message)
|
||||
{
|
||||
Toolkit.getDefaultToolkit().beep();
|
||||
|
||||
getThinlet().setIcon(getThinlet().find(getDialog(), "iconlbl"), "icon", getThinlet().getIcon("/icon/error.gif"));
|
||||
getThinlet().setString(getThinlet().find(getDialog(), "message"), "text", message);
|
||||
getThinlet().setBoolean(getThinlet().find(getDialog(), "closebtn"), "enabled", true);
|
||||
}
|
||||
}
|
598
src/net/thauvin/lifeblogger/LifeBlogger.java
Normal file
|
@ -0,0 +1,598 @@
|
|||
/*
|
||||
* @(#)LifeBlogger.java
|
||||
*
|
||||
* Copyright (c) 2004, Erik C. Thauvin (http://www.thauvin.net/erik/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* Neither the name of the authors nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.lifeblogger;
|
||||
|
||||
import thinlet.FrameLauncher;
|
||||
import thinlet.Thinlet;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
|
||||
/**
|
||||
* The <code>LifeBlogger</code> class uploads/posts Lifeblog's favorite data to a blog.
|
||||
*
|
||||
* @author Erik C. Thauvin
|
||||
* @version $Revision$, $Date$
|
||||
*
|
||||
* @created Jul 19, 2004
|
||||
* @since 1.0
|
||||
*/
|
||||
public class LifeBlogger extends Thinlet
|
||||
{
|
||||
private static final String DRIVER = "SQLite.JDBCDriver";
|
||||
private static final String PREFS =
|
||||
System.getProperty("user.home") + File.separator + ReleaseInfo.getProject() + ".properties";
|
||||
private static final String JDBC_PREFIX = "jdbc:sqlite:/";
|
||||
private static final String DATABASE = "\\DataBase\\NokiaLifeblogDataBase.db";
|
||||
private final Properties _prefs = new Properties();
|
||||
private File _homeDir = new File(System.getProperty("user.home") + "\\My Documents\\NokiaLifeblogData");
|
||||
private String _action;
|
||||
|
||||
/**
|
||||
* Creates a new LifeBlogger object.
|
||||
*
|
||||
* @throws IOException DOCUMENT ME!
|
||||
*/
|
||||
private LifeBlogger()
|
||||
throws IOException
|
||||
{
|
||||
setFont(new Font("SansSerif", Font.PLAIN, 11));
|
||||
|
||||
FileInputStream fis = null;
|
||||
|
||||
try
|
||||
{
|
||||
fis = new FileInputStream(PREFS);
|
||||
_prefs.load(fis);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
e.printStackTrace(System.err);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (fis != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
fis.close();
|
||||
}
|
||||
catch (IOException ignore)
|
||||
{
|
||||
; // Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_homeDir = new File(_prefs.getProperty("home", _homeDir.getAbsolutePath()));
|
||||
_action = _prefs.getProperty("via", "ftp");
|
||||
|
||||
try
|
||||
{
|
||||
Class.forName(DRIVER);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
final Object main = parse("main.xml");
|
||||
setBoolean(find(main, _action), "selected", true);
|
||||
add(main);
|
||||
}
|
||||
|
||||
/**
|
||||
* The main program.
|
||||
*
|
||||
* @param args The command line arguments.
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
new FrameLauncher("LifeBlogger",
|
||||
(new ImageIcon(LifeBlogger.class.getResource("/icon/icon.gif"))).getImage(),
|
||||
new LifeBlogger(), 400, 400, true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the blog action.
|
||||
*
|
||||
* @param action The action
|
||||
*/
|
||||
public final void setAction(String action)
|
||||
{
|
||||
_action = action;
|
||||
_prefs.put("via", _action);
|
||||
savePrefs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the about dialog.
|
||||
*/
|
||||
public final void about()
|
||||
{
|
||||
try
|
||||
{
|
||||
final Object about = parse("about.xml");
|
||||
setString(about, "text", "About " + ReleaseInfo.getProject());
|
||||
setString(find(about, "version"), "text",
|
||||
"Version " + ReleaseInfo.getVersion() + " - Build " + ReleaseInfo.getBuildNumber());
|
||||
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
setString(find(about, "date"), "text", sdf.format(ReleaseInfo.getBuildDate()));
|
||||
add(about);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Populates the table rows.
|
||||
*
|
||||
* @param thinlet The Thinlet object.
|
||||
* @param table The table to populate.
|
||||
* @param buttonsPanel The panel containing the buttons/label to update.
|
||||
*
|
||||
* @throws Exception If an error occurs while populate the table.
|
||||
*/
|
||||
public final void addTableRows(Thinlet thinlet, Object table, Object buttonsPanel)
|
||||
throws Exception
|
||||
{
|
||||
if (!_homeDir.exists())
|
||||
{
|
||||
final JFileChooser fc = new JFileChooser();
|
||||
fc.setDialogTitle("Select Nokia LifeBlog document directory:");
|
||||
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
|
||||
fc.setMultiSelectionEnabled(false);
|
||||
fc.setAcceptAllFileFilterUsed(false);
|
||||
|
||||
final int res = fc.showOpenDialog(this);
|
||||
|
||||
if (res == JFileChooser.APPROVE_OPTION)
|
||||
{
|
||||
_homeDir = fc.getSelectedFile();
|
||||
_prefs.put("home", _homeDir.getAbsolutePath());
|
||||
|
||||
savePrefs();
|
||||
}
|
||||
}
|
||||
|
||||
final Connection con = DriverManager.getConnection(JDBC_PREFIX + _homeDir.getAbsolutePath() + DATABASE);
|
||||
|
||||
final Statement st = con.createStatement();
|
||||
final ResultSet rs =
|
||||
st.executeQuery("SELECT * FROM HooverObject WHERE MobileFavourite = 'true' ORDER BY TimeStamp DESC");
|
||||
|
||||
Object row;
|
||||
Object cell;
|
||||
String ts;
|
||||
String name;
|
||||
|
||||
boolean first = true;
|
||||
int found = 0;
|
||||
|
||||
while (rs.next())
|
||||
{
|
||||
ts = rs.getString("TimeStamp");
|
||||
name = rs.getString("name");
|
||||
|
||||
row = Thinlet.create("row");
|
||||
|
||||
cell = Thinlet.create("cell");
|
||||
thinlet.setString(cell, "text", name);
|
||||
|
||||
if (name.toLowerCase().endsWith("jpg"))
|
||||
{
|
||||
thinlet.setIcon(cell, "icon", getIcon("/icon/image.gif"));
|
||||
}
|
||||
else if (name.toLowerCase().endsWith("3gp"))
|
||||
{
|
||||
thinlet.setIcon(cell, "icon", getIcon("/icon/movie.gif"));
|
||||
}
|
||||
else
|
||||
{
|
||||
thinlet.setIcon(cell, "icon", getIcon("/icon/text.gif"));
|
||||
}
|
||||
|
||||
thinlet.putProperty(cell, "oid", rs.getString("HooverObjectID"));
|
||||
thinlet.add(row, cell);
|
||||
|
||||
cell = Thinlet.create("cell");
|
||||
thinlet.setString(cell, "text", ts.substring(0, ts.lastIndexOf(':')));
|
||||
thinlet.add(row, cell);
|
||||
|
||||
if (first)
|
||||
{
|
||||
thinlet.setBoolean(row, "selected", true);
|
||||
first = false;
|
||||
}
|
||||
|
||||
thinlet.add(table, row);
|
||||
|
||||
found++;
|
||||
}
|
||||
|
||||
thinlet.setString(find(buttonsPanel, "favslbl"), "text", "Favorites: " + found);
|
||||
|
||||
st.close();
|
||||
rs.close();
|
||||
con.close();
|
||||
|
||||
toggleButton(table, find(buttonsPanel, "blogbtn"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the blog action.
|
||||
*
|
||||
* @param table The table containing the selected item to perform the action on.
|
||||
*
|
||||
* @throws Exception If an error occurs while performing the action.
|
||||
*/
|
||||
public final void blog(Object table)
|
||||
throws Exception
|
||||
{
|
||||
final int selected = getSelectedIndex(table);
|
||||
|
||||
if (selected != -1)
|
||||
{
|
||||
final Object row = getItem(table, selected);
|
||||
final String name = String.valueOf(getProperty(getItem(row, 0), "oid"));
|
||||
|
||||
final Connection con = DriverManager.getConnection(JDBC_PREFIX + _homeDir.getAbsolutePath() + DATABASE);
|
||||
|
||||
final Statement st = con.createStatement();
|
||||
final ResultSet rs = st.executeQuery("SELECT * FROM BinaryItem WHERE HooverObjectID = " + name);
|
||||
|
||||
if (rs.next())
|
||||
{
|
||||
if ("ftp".equals(_action))
|
||||
{
|
||||
ftpDialog(_homeDir.getAbsolutePath() + "\\DataStore" + rs.getString("Pathname") +
|
||||
rs.getString("Filename"));
|
||||
}
|
||||
else
|
||||
{
|
||||
mwDialog(_homeDir.getAbsolutePath() + "\\DataStore" + rs.getString("Pathname") +
|
||||
rs.getString("Filename"), rs.getString("ObjectMimeType"));
|
||||
}
|
||||
}
|
||||
|
||||
st.close();
|
||||
rs.close();
|
||||
con.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the given dialog.
|
||||
*
|
||||
* @param dialog The dialog to close.
|
||||
*/
|
||||
public final void closeDialog(Object dialog)
|
||||
{
|
||||
remove(dialog);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extis the main program.
|
||||
*/
|
||||
public final void exit()
|
||||
{
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Preforms the FTP action.
|
||||
*
|
||||
* @param dialog The FTP dialog,
|
||||
* @param ftpPanel The panel contaning the FTP data.
|
||||
*
|
||||
* @throws IOException If an error occurs while performing the action.
|
||||
*/
|
||||
public final void ftp(Object dialog, Object ftpPanel)
|
||||
throws IOException
|
||||
{
|
||||
final String host = getString(find(ftpPanel, "host"), "text");
|
||||
final String login = getString(find(ftpPanel, "login"), "text");
|
||||
final String password = getString(find(ftpPanel, "password"), "text");
|
||||
final String path = getString(find(ftpPanel, "path"), "text");
|
||||
final String filename = getString(find(ftpPanel, "filename"), "text");
|
||||
|
||||
if (host.length() <= 0)
|
||||
{
|
||||
alert("Please specify a host name.");
|
||||
}
|
||||
else if (login.length() <= 0)
|
||||
{
|
||||
alert("Please specify a login name.");
|
||||
}
|
||||
else if (filename.length() <= 0)
|
||||
{
|
||||
alert("Please specify a file name.");
|
||||
}
|
||||
else
|
||||
{
|
||||
_prefs.put("host", host);
|
||||
_prefs.put("login", login);
|
||||
_prefs.put("password", password);
|
||||
_prefs.put("path", path);
|
||||
|
||||
savePrefs();
|
||||
|
||||
closeDialog(dialog);
|
||||
|
||||
final LifeFTP ftp =
|
||||
new LifeFTP(this, host, login, password, path, filename,
|
||||
new File(getString(find(ftpPanel, "file"), "text")));
|
||||
ftp.start();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Preforms the MetaWeblog action.
|
||||
*
|
||||
* @param dialog The MetaWeblog dialog,
|
||||
* @param mwPanel The panel contaning the MetaWeblog data.
|
||||
*
|
||||
* @throws IOException If an error occurs while performing the action.
|
||||
*/
|
||||
public final void metaWeblog(Object dialog, Object mwPanel)
|
||||
throws IOException
|
||||
{
|
||||
final String host = getString(find(mwPanel, "host"), "text");
|
||||
final String login = getString(find(mwPanel, "login"), "text");
|
||||
final String password = getString(find(mwPanel, "password"), "text");
|
||||
final String filename = getString(find(mwPanel, "filename"), "text");
|
||||
final String blogID = getString(find(mwPanel, "blogid"), "text");
|
||||
|
||||
if (host.length() <= 0)
|
||||
{
|
||||
alert("Please specify a XML-RPC URL.");
|
||||
}
|
||||
else if (login.length() <= 0)
|
||||
{
|
||||
alert("Please specify a login name.");
|
||||
}
|
||||
else if (password.length() <= 0)
|
||||
{
|
||||
alert("Please specify a password.");
|
||||
}
|
||||
else if (filename.length() <= 0)
|
||||
{
|
||||
alert("Please specify a file name.");
|
||||
}
|
||||
else if (blogID.length() <= 0)
|
||||
{
|
||||
alert("Please specify a blog ID.");
|
||||
}
|
||||
else
|
||||
{
|
||||
_prefs.put("mw-host", host);
|
||||
_prefs.put("mw-login", login);
|
||||
_prefs.put("mw-password", password);
|
||||
_prefs.put("mw-id", blogID);
|
||||
|
||||
savePrefs();
|
||||
|
||||
closeDialog(dialog);
|
||||
|
||||
final LifeMediaObject mw =
|
||||
new LifeMediaObject(this, host, blogID, login, password, filename,
|
||||
String.valueOf(getProperty(find(mwPanel, "file"), "mtype")),
|
||||
new File(getString(find(mwPanel, "file"), "text")));
|
||||
mw.start();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggles the given button based on the specified table selection.
|
||||
*
|
||||
* @param table The table.
|
||||
* @param button The button.
|
||||
*/
|
||||
public final void toggleButton(Object table, Object button)
|
||||
{
|
||||
setBoolean(button, "enabled", getSelectedIndex(table) != -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the table data.
|
||||
*
|
||||
* @param thinlet The Thinlet object.
|
||||
* @param table The table to update.
|
||||
* @param buttonsPanel The panel containing the buttons/label to update.
|
||||
*/
|
||||
public final void updateTable(Thinlet thinlet, Object table, Object buttonsPanel)
|
||||
{
|
||||
thinlet.removeAll(table);
|
||||
|
||||
try
|
||||
{
|
||||
addTableRows(thinlet, table, buttonsPanel);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
showException(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays an exception stacktrace.
|
||||
*
|
||||
* @param thr The exception.
|
||||
*/
|
||||
protected final void showException(Throwable thr)
|
||||
{
|
||||
final StringWriter writer = new StringWriter();
|
||||
thr.printStackTrace(new PrintWriter(writer));
|
||||
|
||||
final String trace = writer.toString().replace('\r', ' ').replace('\t', ' ');
|
||||
String thrclass = thr.getClass().getName();
|
||||
thrclass = thrclass.substring(thrclass.lastIndexOf('.') + 1);
|
||||
|
||||
try
|
||||
{
|
||||
final Object dialog = parse("exception.xml");
|
||||
setString(dialog, "text", thrclass);
|
||||
setString(find(dialog, "message"), "text", thr.getMessage());
|
||||
setString(find(dialog, "stacktrace"), "text", trace);
|
||||
|
||||
Toolkit.getDefaultToolkit().beep();
|
||||
add(dialog);
|
||||
requestFocus(find(dialog, "closebtn"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
// Displays an alert.
|
||||
private void alert(String message)
|
||||
{
|
||||
Toolkit.getDefaultToolkit().beep();
|
||||
|
||||
try
|
||||
{
|
||||
final Object alert = parse("alert.xml");
|
||||
setString(find(alert, "message"), "text", message);
|
||||
|
||||
add(alert);
|
||||
requestFocus(find(alert, "closebtn"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
// Display the FTP dialog.
|
||||
private void ftpDialog(String file)
|
||||
{
|
||||
try
|
||||
{
|
||||
final Object ftp = parse("ftp.xml");
|
||||
setString(find(ftp, "file"), "text", file);
|
||||
setString(find(ftp, "filename"), "text", file.substring(file.lastIndexOf('\\') + 1));
|
||||
setString(find(ftp, "host"), "text", _prefs.getProperty("host", ""));
|
||||
setString(find(ftp, "login"), "text", _prefs.getProperty("login", "anonymous"));
|
||||
setString(find(ftp, "password"), "text", _prefs.getProperty("password", ""));
|
||||
add(ftp);
|
||||
requestFocus(find(ftp, "host"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
// Display the MetaWeblog dialog.
|
||||
private void mwDialog(String file, String mimeType)
|
||||
{
|
||||
try
|
||||
{
|
||||
final Object mw = parse("metaweblog.xml");
|
||||
setString(find(mw, "file"), "text", file);
|
||||
putProperty(find(mw, "file"), "mtype", mimeType);
|
||||
setString(find(mw, "filename"), "text", file.substring(file.lastIndexOf('\\') + 1));
|
||||
setString(find(mw, "host"), "text", _prefs.getProperty("mw-host", ""));
|
||||
setString(find(mw, "login"), "text", _prefs.getProperty("mw-login", "anonymous"));
|
||||
setString(find(mw, "password"), "text", _prefs.getProperty("mw-password", ""));
|
||||
setString(find(mw, "blogid"), "text", _prefs.getProperty("mw-id", ""));
|
||||
add(mw);
|
||||
requestFocus(find(mw, "host"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
// Saves the properties.
|
||||
private void savePrefs()
|
||||
{
|
||||
FileOutputStream out = null;
|
||||
|
||||
try
|
||||
{
|
||||
out = new FileOutputStream(PREFS);
|
||||
_prefs.store(out, ReleaseInfo.getProject() + ' ' + ReleaseInfo.getVersion());
|
||||
out.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (out != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
out.close();
|
||||
}
|
||||
catch (IOException ignore)
|
||||
{
|
||||
; // Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
145
src/net/thauvin/lifeblogger/LifeFTP.java
Normal file
|
@ -0,0 +1,145 @@
|
|||
/*
|
||||
* @(#)LifeFTP.java
|
||||
*
|
||||
* Copyright (c) 2004, Erik C. Thauvin (http://www.thauvin.net/erik/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* Neither the name of the authors nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.lifeblogger;
|
||||
|
||||
import org.apache.commons.net.ftp.FTPClient;
|
||||
import org.apache.commons.net.ftp.FTPReply;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
/**
|
||||
* The <code>LifeFTP</code> class stores/uploads a file to a FTP server.
|
||||
*
|
||||
* @author Erik C. Thauvin
|
||||
* @version $Revision$, $Date$
|
||||
*
|
||||
* @created Jul 20, 2004
|
||||
* @since 1.0
|
||||
*/
|
||||
public class LifeFTP extends LifeBlog
|
||||
{
|
||||
/**
|
||||
* Creates a new LifeFTP object.
|
||||
*
|
||||
* @param thinlet The Thinlet object.
|
||||
* @param host The FTP host.
|
||||
* @param login The FTP login username.
|
||||
* @param password The FTP login password.
|
||||
* @param path The FTP path to upload to.
|
||||
* @param filename The name of the file to upload.
|
||||
* @param file The file to upload.
|
||||
*
|
||||
* @throws IOException If an error occurs while creating the object.
|
||||
*/
|
||||
public LifeFTP(LifeBlogger thinlet, String host, String login, String password, String path, String filename,
|
||||
File file)
|
||||
throws IOException
|
||||
{
|
||||
super(thinlet, host, login, password, path, filename, file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the FTP transfer.
|
||||
*
|
||||
* @see Thread#run()
|
||||
*/
|
||||
public final void run()
|
||||
{
|
||||
boolean success = false;
|
||||
|
||||
try
|
||||
{
|
||||
getThinlet().add(getDialog());
|
||||
|
||||
final FTPClient ftp = new FTPClient();
|
||||
ftp.connect(getHost());
|
||||
ftp.login(getLogin(), getPassword());
|
||||
|
||||
success = FTPReply.isPositiveCompletion(ftp.getReplyCode());
|
||||
|
||||
if (!success)
|
||||
{
|
||||
alert("Invalid login and/or password.");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (getPath().length() > 0)
|
||||
{
|
||||
ftp.changeWorkingDirectory(getPath());
|
||||
|
||||
success = FTPReply.isPositiveCompletion(ftp.getReplyCode());
|
||||
|
||||
if (!success)
|
||||
{
|
||||
alert("Could not access specified path.");
|
||||
}
|
||||
}
|
||||
|
||||
if (success)
|
||||
{
|
||||
final BufferedInputStream bis = new BufferedInputStream(new FileInputStream(getFile()));
|
||||
|
||||
ftp.storeFile(getFilename(), bis);
|
||||
|
||||
bis.close();
|
||||
|
||||
success = FTPReply.isPositiveCompletion(ftp.getReplyCode());
|
||||
|
||||
if (!success)
|
||||
{
|
||||
alert("An error occurred: " + ftp.getReplyString());
|
||||
}
|
||||
else
|
||||
{
|
||||
getThinlet().closeDialog(getDialog());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ftp.disconnect();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
getThinlet().closeDialog(getDialog());
|
||||
getThinlet().showException(e);
|
||||
}
|
||||
}
|
||||
}
|
135
src/net/thauvin/lifeblogger/LifeMediaObjResponse.java
Normal file
|
@ -0,0 +1,135 @@
|
|||
/*
|
||||
* @(#)LifeMediaObjResponse.java
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* Neither the name of the authors nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.lifeblogger;
|
||||
|
||||
import thinlet.Thinlet;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
|
||||
/**
|
||||
* The <code>LifeMediaObjResponse</code> class uses the Thinlet DOM parser to process the metaWeblog.newMediaObject
|
||||
* XML-RPC reponse.
|
||||
*
|
||||
* @author Erik C. Thauvin
|
||||
* @version $Revision$, $Date$
|
||||
*
|
||||
* @created Jul 21, 2004
|
||||
* @since 1.0
|
||||
*/
|
||||
public class LifeMediaObjResponse extends Thinlet
|
||||
{
|
||||
private final InputStream _inputStream;
|
||||
private String _response;
|
||||
|
||||
/**
|
||||
* Creates a new LifeMediaObjResponse object.
|
||||
*
|
||||
* @param inputStream The input stream.
|
||||
*/
|
||||
public LifeMediaObjResponse(InputStream inputStream)
|
||||
{
|
||||
_inputStream = inputStream;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the XML-RPC response/fault string.
|
||||
*
|
||||
* @return The response string.
|
||||
*/
|
||||
public final String getResponse()
|
||||
{
|
||||
return _response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses and validates the XML-RPC response.
|
||||
*
|
||||
* @return <code>true</code> is the response is valid, <code>false</code> if it is a fault.
|
||||
*
|
||||
* @throws IOException If an error occurs while processing the response.
|
||||
*/
|
||||
public final boolean isValidResponse()
|
||||
throws IOException
|
||||
{
|
||||
try
|
||||
{
|
||||
final Object dom = parseDOM(_inputStream);
|
||||
final Object params = getDOMNode(dom, "params", 0);
|
||||
|
||||
if (params != null)
|
||||
{
|
||||
final Object param = getDOMNode(params, "param", 0);
|
||||
final Object value = getDOMNode(param, "value", 0);
|
||||
final Object struct = getDOMNode(value, "struct", 0);
|
||||
final Object member = getDOMNode(struct, "member", 0);
|
||||
final Object url = getDOMNode(member, "value", 0);
|
||||
final Object string = getDOMNode(url, "string", 0);
|
||||
|
||||
_response = getDOMText(string);
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
final Object fault = getDOMNode(dom, "fault", 0);
|
||||
final Object value = getDOMNode(fault, "value", 0);
|
||||
final Object struct = getDOMNode(value, "struct", 0);
|
||||
final Object member = getDOMNode(struct, "member", 0);
|
||||
final Object error = getDOMNode(member, "value", 0);
|
||||
final Object string = getDOMNode(error, "string", 0);
|
||||
|
||||
_response = getDOMText(string);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
_inputStream.close();
|
||||
}
|
||||
catch (IOException ignore)
|
||||
{
|
||||
; // Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
216
src/net/thauvin/lifeblogger/LifeMediaObject.java
Normal file
|
@ -0,0 +1,216 @@
|
|||
/*
|
||||
* @(#)LifeMediaObject.java
|
||||
*
|
||||
* Copyright (c) 2004, Erik C. Thauvin (http://www.thauvin.net/erik/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* Neither the name of the authors nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.lifeblogger;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.datatransfer.StringSelection;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
|
||||
|
||||
/**
|
||||
* The <code>LifeMediaObject</code> class posts a new media object via the metaWeblog.newMediaObject XML-RPC call.
|
||||
*
|
||||
* @author Erik C. Thauvin
|
||||
* @version $Revision$, $Date$
|
||||
*
|
||||
* @created Jul 21, 2004
|
||||
* @since 1.0
|
||||
*/
|
||||
public class LifeMediaObject extends LifeBlog
|
||||
{
|
||||
private final String _blogID;
|
||||
private final String _mimeType;
|
||||
|
||||
/**
|
||||
* Creates a new LifeMediaObject object.
|
||||
*
|
||||
* @param thinlet The Thinlet instance.
|
||||
* @param url The MetaWeblog XML-RPC URL.
|
||||
* @param blogID The blog ID.
|
||||
* @param login The MetaWeblog login username.
|
||||
* @param password The MetaWeblog login password.
|
||||
* @param filename The name of the object to store.
|
||||
* @param mimeType The object's MIME type.
|
||||
* @param file The file to store.
|
||||
*
|
||||
* @throws IOException If an error occurs while creating the object.
|
||||
*/
|
||||
public LifeMediaObject(LifeBlogger thinlet, String url, String blogID, String login, String password,
|
||||
String filename, String mimeType, File file)
|
||||
throws IOException
|
||||
{
|
||||
super(thinlet, url, login, password, "", filename, file);
|
||||
|
||||
_mimeType = mimeType;
|
||||
_blogID = blogID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the action.
|
||||
*
|
||||
* @see Thread#run()
|
||||
*/
|
||||
public final void run()
|
||||
{
|
||||
FileInputStream fis = null;
|
||||
final BufferedReader input = null;
|
||||
|
||||
try
|
||||
{
|
||||
getThinlet().add(getDialog());
|
||||
|
||||
final URL url = new URL(getHost());
|
||||
|
||||
if (!"http".equalsIgnoreCase(url.getProtocol()))
|
||||
{
|
||||
throw new IOException("Unsupported URL protocol: " + url.getProtocol());
|
||||
}
|
||||
|
||||
// The following is a little hackish.
|
||||
// A better way would be to generate the request to a temporary file.
|
||||
final long len = getFile().length();
|
||||
|
||||
if (len > Integer.MAX_VALUE)
|
||||
{
|
||||
throw new IOException("Sorry. The file is too large.");
|
||||
}
|
||||
|
||||
fis = new FileInputStream(getFile());
|
||||
|
||||
final byte[] bytes = new byte[(int) getFile().length()];
|
||||
|
||||
int offset = 0;
|
||||
int numRead = 0;
|
||||
|
||||
while ((offset < bytes.length) && ((numRead = fis.read(bytes, offset, bytes.length - offset)) >= 0))
|
||||
{
|
||||
offset += numRead;
|
||||
}
|
||||
|
||||
if (offset < bytes.length)
|
||||
{
|
||||
throw new IOException("Could not completely read file: " + getFile().getName());
|
||||
}
|
||||
|
||||
final StringBuffer start =
|
||||
new StringBuffer("<?xml version=\"1.0\"?><methodCall><methodName>metaWeblog.newMediaObject</methodName><params><param><value><string>").append(_blogID)
|
||||
.append("</string></value></param><param><value><string>")
|
||||
.append(getLogin())
|
||||
.append("</string></value></param><param><value><string>")
|
||||
.append(getPassword())
|
||||
.append("</string></value></param><param><value><struct><member><name>bits</name><value><base64>");
|
||||
final String bits = Base64.encodeBytes(bytes);
|
||||
|
||||
final StringBuffer end =
|
||||
new StringBuffer("</base64></value></member><member><name>name</name><value><string>").append(getFilename())
|
||||
.append("</string></value></member><member><name>type</name><value><string>")
|
||||
.append(_mimeType)
|
||||
.append("</string></value></member></struct></value></param></params></methodCall>");
|
||||
|
||||
final URLConnection urlConn = url.openConnection();
|
||||
urlConn.setDoInput(true);
|
||||
urlConn.setDoOutput(true);
|
||||
urlConn.setUseCaches(false);
|
||||
urlConn.setRequestProperty("Content-Length", String.valueOf(start.length() + bits.length() + end.length()));
|
||||
urlConn.setRequestProperty("Content-Type", "text/xml");
|
||||
|
||||
final DataOutputStream output = new DataOutputStream(urlConn.getOutputStream());
|
||||
output.write(start.toString().getBytes());
|
||||
output.flush();
|
||||
output.write(bits.getBytes());
|
||||
output.flush();
|
||||
output.write(end.toString().getBytes());
|
||||
output.flush();
|
||||
|
||||
output.close();
|
||||
|
||||
final LifeMediaObjResponse xmlrpc = new LifeMediaObjResponse(urlConn.getInputStream());
|
||||
|
||||
if (xmlrpc.isValidResponse())
|
||||
{
|
||||
getThinlet().setIcon(getThinlet().find(getDialog(), "iconlbl"), "icon",
|
||||
getThinlet().getIcon("/icon/info.gif"));
|
||||
getThinlet().setString(getThinlet().find(getDialog(), "message"), "text",
|
||||
"The file can now be accessed at:\n\n" + xmlrpc.getResponse() +
|
||||
"\n\nwhich has been copied to the clipboard.");
|
||||
getThinlet().setBoolean(getThinlet().find(getDialog(), "closebtn"), "enabled", true);
|
||||
|
||||
final StringSelection ss = new StringSelection(xmlrpc.getResponse());
|
||||
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, ss);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(xmlrpc.getResponse());
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
getThinlet().closeDialog(getDialog());
|
||||
getThinlet().showException(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (input != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
input.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
; // Do nothing
|
||||
}
|
||||
}
|
||||
|
||||
if (fis != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
fis.close();
|
||||
}
|
||||
catch (IOException ignore)
|
||||
{
|
||||
; // Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
51
src/net/thauvin/lifeblogger/ReleaseInfo.java
Normal file
|
@ -0,0 +1,51 @@
|
|||
/* Created by JReleaseInfo AntTask from Open Source Competence Group */
|
||||
/* Creation date Thu Jul 22 04:13:17 PDT 2004 */
|
||||
package net.thauvin.lifeblogger;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* This class provides information gathered from the build environment.
|
||||
*
|
||||
* @author JReleaseInfo AntTask
|
||||
*/
|
||||
public class ReleaseInfo {
|
||||
|
||||
|
||||
/** buildDate (set during build process to 1090494797296L). */
|
||||
private static Date buildDate = new Date(1090494797296L);
|
||||
|
||||
/**
|
||||
* Get buildDate (set during build process to Thu Jul 22 04:13:17 PDT 2004).
|
||||
* @return Date buildDate
|
||||
*/
|
||||
public static final Date getBuildDate() { return buildDate; }
|
||||
|
||||
|
||||
/**
|
||||
* Get buildNumber (set during build process to 77).
|
||||
* @return int buildNumber
|
||||
*/
|
||||
public static final int getBuildNumber() { return 77; }
|
||||
|
||||
|
||||
/** version (set during build process to "0.1.0"). */
|
||||
private static String version = new String("0.1.0");
|
||||
|
||||
/**
|
||||
* Get version (set during build process to "0.1.0").
|
||||
* @return String version
|
||||
*/
|
||||
public static final String getVersion() { return version; }
|
||||
|
||||
|
||||
/** project (set during build process to "LifeBlogger"). */
|
||||
private static String project = new String("LifeBlogger");
|
||||
|
||||
/**
|
||||
* Get project (set during build process to "LifeBlogger").
|
||||
* @return String project
|
||||
*/
|
||||
public static final String getProject() { return project; }
|
||||
|
||||
}
|
28
src/net/thauvin/lifeblogger/about.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dialog name="dialog" icon="/icon/info.gif" text="About" modal="true"
|
||||
columns="1" top="8" left="8" bottom="8" right="8" gap="8">
|
||||
<label alignment="center" weightx="1" background="#FFFFFF" foreground="#FFFFFF" icon="/icon/logo.gif"/>
|
||||
<panel top="4" columns="1" left="8" bottom="0" gap="0" right="8">
|
||||
<label alignment="left" weightx="1" text="Written by Erik C. Thauvin"/>
|
||||
</panel>
|
||||
<panel top="0" columns="1" left="8" bottom="0" gap="0" right="8">
|
||||
<label alignment="left" weightx="1" text="Based on a concept developed by:"/>
|
||||
</panel>
|
||||
<panel top="0" columns="1" left="32" bottom="0" gap="0" right="8">
|
||||
<label alignment="left" weightx="1" text="Russell Beattie"/>
|
||||
<label alignment="left" weightx="1" text="Matt Croydon"/>
|
||||
<label alignment="left" weightx="1" text="and Erik C. Thauvin"/>
|
||||
</panel>
|
||||
<panel top="0" columns="1" left="8" bottom="0" gap="0" right="8">
|
||||
<label alignment="left" weightx="1" text="Logo made by Russell Beattie"/>
|
||||
</panel>
|
||||
<panel top="0" columns="1" left="8" bottom="4" gap="0" right="8">
|
||||
<label alignment="center" weightx="1" icon="/icon/thinlet.gif"/>
|
||||
</panel>
|
||||
<separator/>
|
||||
<panel top="0" columns="1" left="8" bottom="0" right="8" gap="0" halign="center">
|
||||
<label name="version" alignment="center"/>
|
||||
<label name="date" alignment="center"/>
|
||||
</panel>
|
||||
<button text="Close" halign="center" action="closeDialog(dialog)"/>
|
||||
</dialog>
|
6
src/net/thauvin/lifeblogger/alert.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dialog name="alert" icon="/icon/help.gif" text="Error Message" modal="true" columns="2" top="8" left="8" bottom="8" right="8" gap="8">
|
||||
<label icon="/icon/error.gif" valign="top"/>
|
||||
<textarea wrap="true" editable="false" border="false" name="message" columns="45" rows="4" start="-1" end="-1"/>
|
||||
<button text="Close" colspan="2" halign="center" action="closeDialog(alert)"/>
|
||||
</dialog>
|
7
src/net/thauvin/lifeblogger/exception.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dialog name="exception" icon="/icon/help.gif" modal="true"
|
||||
columns="1" top="8" left="8" bottom="8" right="8" gap="8">
|
||||
<label name="message"/>
|
||||
<textarea name="stacktrace" editable="false" width="300" height="150" weightx="1" weighty="1"/>
|
||||
<button name="closebtn" text="Close" halign="center" action="closeDialog(exception)"/>
|
||||
</dialog>
|
15
src/net/thauvin/lifeblogger/ftp.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dialog name="dialog" text="Send via FTP" modal="false" columns="1" gap="4" top="4" left="4" bottom="4" right="4">
|
||||
<panel name="ftp" columns="2" halign="right" gap="4">
|
||||
<label text="File:"/><textfield name="file" columns="50" editable="false"/>
|
||||
<label text="Host:"/><textfield name="host" start="0" end="1000"/>
|
||||
<label text="Login:"/><textfield name="login"/>
|
||||
<label text="Password:"/><passwordfield name="password"/>
|
||||
<label text="Path:"/><textfield name="path"/>
|
||||
<label text="Filename:"/><textfield name="filename"/>
|
||||
</panel>
|
||||
<panel columns="2" halign="right" gap="4">
|
||||
<button name="cancelbtn" text="Cancel" icon="/icon/exit.gif" action="closeDialog(dialog)"/>
|
||||
<button name="sendbtn" text="Send" icon="/icon/go.gif" action="ftp(dialog, ftp)"/>
|
||||
</panel>
|
||||
</dialog>
|
29
src/net/thauvin/lifeblogger/main.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<panel name="mainpanel" columns="1">
|
||||
<menubar weightx="1">
|
||||
<menu text="File" mnemonic="0">
|
||||
<menuitem text="Exit" action="exit()" icon="/icon/exit.gif" mnemonic="1"/>
|
||||
</menu>
|
||||
<menu text="Blog" mnemonic="0">
|
||||
<checkboxmenuitem name="ftp" text="Via FTP" group="via" mnemonic="4" action="setAction(this.name)"/>
|
||||
<checkboxmenuitem name="mv" text="Via MetaWeblog" group="via" mnemonic="4" action="setAction(this.name)"/>
|
||||
</menu>
|
||||
<menu text="Help" mnemonic="0">
|
||||
<menuitem text="About" action="about()" icon="/icon/about.gif" mnemonic="0"/>
|
||||
</menu>
|
||||
</menubar>
|
||||
<panel gap="4" top="3" left="3" bottom="3" right="3" columns="1" weighty="1">
|
||||
|
||||
<table name="table" weightx="1" weighty="1" init="addTableRows(thinlet, table, btns)" action="toggleButton(this, blogbtn)">
|
||||
<header>
|
||||
<column text="Name" width="270"/>
|
||||
<column text="Date"/>
|
||||
</header>
|
||||
</table>
|
||||
<panel name="btns" gap="4" halign="right" colspan="2" weightx="1">
|
||||
<label name="favslbl"/>
|
||||
<button name="refreshbtn" text="Refresh" icon="/icon/refresh.gif" action="updateTable(thinlet, table, btns)"/>
|
||||
<button name="blogbtn" text="Blog" icon="/icon/go.gif" enabled="false" action="blog(table)"/>
|
||||
</panel>
|
||||
</panel>
|
||||
</panel>
|
15
src/net/thauvin/lifeblogger/metaweblog.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dialog name="dialog" text="Send via MetaWeblog" modal="false" columns="1" gap="4" top="4" left="4" bottom="4" right="4">
|
||||
<panel name="mw" columns="2" halign="right" gap="4">
|
||||
<label text="File:"/><textfield name="file" columns="50" editable="false"/>
|
||||
<label text="URL:"/><textfield name="host" start="0" end="1000"/>
|
||||
<label text="Blog ID:"/><textfield name="blogid"/>
|
||||
<label text="Login:"/><textfield name="login"/>
|
||||
<label text="Password:"/><passwordfield name="password"/>
|
||||
<label text="Filename:"/><textfield name="filename"/>
|
||||
</panel>
|
||||
<panel columns="2" halign="right" gap="4">
|
||||
<button name="cancelbtn" text="Cancel" icon="/icon/exit.gif" action="closeDialog(dialog)"/>
|
||||
<button name="sendbtn" text="Send" icon="/icon/go.gif" action="metaWeblog(dialog, mw)"/>
|
||||
</panel>
|
||||
</dialog>
|
6
src/net/thauvin/lifeblogger/transfer.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dialog name="transfer" icon="/icon/help.gif" text="Uploading..." modal="true" columns="2" top="8" left="8" bottom="8" right="8" gap="8">
|
||||
<label name="iconlbl" icon="/icon/wait.gif" valign="top"/>
|
||||
<textarea wrap="true" editable="false" border="false" name="message" columns="45" rows="4" text="Uploading... Please wait..." start="-1" end="-1"/>
|
||||
<button name="closebtn" text="Close" colspan="2" halign="center" action="closeDialog(transfer)" enabled="false"/>
|
||||
</dialog>
|
9
webstart.properties
Normal file
|
@ -0,0 +1,9 @@
|
|||
codebase=http://www.thauvin.net/erik/download/lifeblogger/
|
||||
homepage=http://www.thauvin.net/erik/lifeblogger/
|
||||
vendor=Erik C. Thauvin
|
||||
description=Posts your Lifeblog favorites to your blog
|
||||
nativelib=sqlite_jni.dll
|
||||
path.dist.signed=dist-signed
|
||||
icon=icon64.gif
|
||||
logo=logo.gif
|
||||
path.images=images
|
71
webstart.xml
Normal file
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0"?>
|
||||
<project basedir="." name="webstart" default="build">
|
||||
<property file="${basedir}/build.properties"/>
|
||||
<property file="${basedir}/webstart.properties"/>
|
||||
<property file="${basedir}/keystore.properties"/>
|
||||
<property file="${basedir}/ftp.properties"/>
|
||||
<path id="ant.class">
|
||||
<fileset dir="${path.ant}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<taskdef classpathref="ant.class" resource="com/roxes/tools/ant/taskdefs.properties"/>
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
<mkdir dir="${path.dist.signed}"/>
|
||||
</target>
|
||||
<target name="build" depends="init" description="Build the JNLP file">
|
||||
<copy toDir="${path.dist.signed}">
|
||||
<fileset dir="${path.lib}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
<fileset dir="${path.dist}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<jar destFile="${path.dist.signed}/${nativelib}" basedir="${path.libexec}" includes="${nativelib}"/>
|
||||
<signjar keystore="${keystore}" alias="${keystore.alias}" storepass="${keystore.pass}">
|
||||
<fileset dir="${path.dist.signed}">
|
||||
<include name="**/*"/>
|
||||
</fileset>
|
||||
</signjar>
|
||||
<jnlp codebase="${codebase}" href="${proj.name}.jnlp" toFile="${proj.name}.jnlp">
|
||||
<information>
|
||||
<title>${proj.name}</title>
|
||||
<vendor>${vendor}</vendor>
|
||||
<homepage href="${homepage}"/>
|
||||
<icon href="${icon}"/>
|
||||
<icon href="${logo}" kind="splash"/>
|
||||
<description>${description}</description>
|
||||
<description kind="tooltip">${description}</description>
|
||||
<offline_allowed/>
|
||||
</information>
|
||||
<security>
|
||||
<all_permissions/>
|
||||
</security>
|
||||
<resources os="Windows">
|
||||
<j2se version="1.4+"/>
|
||||
<fileset dir="${path.dist.signed}">
|
||||
<include name="**/*.jar"/>
|
||||
<include name="**/*.dll"/>
|
||||
</fileset>
|
||||
</resources>
|
||||
<application_desc main_class="${proj.run}"/>
|
||||
</jnlp>
|
||||
</target>
|
||||
<target name="ftp" depends="build" description="Upload the files">
|
||||
<ftp server="${ftp.server}" userid="${ftp.userid}" remotedir="${ftp.remotedir}" password="${ftp.password}">
|
||||
<fileset dir="${path.dist.signed}">
|
||||
<include name="**/*.jar"/>
|
||||
<include name="**/*.dll"/>
|
||||
</fileset>
|
||||
<fileset file="${proj.name}.jnlp"/>
|
||||
<fileset dir="${path.images}"/>
|
||||
</ftp>
|
||||
</target>
|
||||
<target name="clean" depends="init" description="Removes jars">
|
||||
<delete quiet="true" includeEmptyDirs="true">
|
||||
<fileset dir="${path.dist.signed}" includes="*,*/**"/>
|
||||
</delete>
|
||||
</target>
|
||||
</project>
|