Difference between revisions of "How to build Freeplane"

From Freeplane - free mind mapping and knowledge management software
(Created page with '== How to check out Freeplane and use svn == ok, first step is to get a svn client; this is the program you need for checking out of a central repository - the one where we all ...')
 
 
(38 intermediate revisions by 11 users not shown)
Line 1: Line 1:
== How to check out Freeplane and use svn ==
+
[[Category:Coding]]
  
ok, first step is to get a svn client; this is the program you need
+
== Requirements ==
for checking out of a central repository - the one where we all work
+
* You need java 11 or later and gradle >= 6.0
together.
 
  
you need to understand what 'commit' and 'update' means, there are
+
== Download gradle ==
many hello world
+
* Download gradle: https://gradle.org/releases/
tutorials for svn in the net
+
* Unzip to your home directory
  
(by the way, 'svn' stands for 'subversion', this is also the name of a
+
== Clone the freeplane repository ==
command line program if you have installed the svn client.)
+
git clone https://github.com/freeplane/freeplane.git
 +
cd freeplane
  
READ: http://subversion.tigris.org/faq.html
+
== Run gradle ==
 +
* Gradle wrapper files are intentionally not committed to the sources but git ignored so that you can add them yourself if you need them.
 +
$ ~/Downloads/gradle-6.0.1/bin/gradle build
  
especially try to understand what is going on in
+
== Run freeplane ==
 +
cd BIN
 +
./freeplane.sh # linux
 +
freeplane.bat
 +
 +
== Create package ==
 +
~/git2/freeplane(1.7.x u=)$ ~/Downloads/gradle-6.0.1/bin/gradle clean build dist
 +
ls DIST
  
http://subversion.tigris.org/faq.html#co-svn
+
== Configuring an IDE ==
 
+
* See [[IDE setup| how to set up IDE]]
after reading the example, you can try that out in your svn client
 
(either plain cli program svn, tortoisesvn which is a gui for the same
 
functionality integrated in the file explorer) and check out the code
 
from freeplane.
 
 
 
There is also a web interface for better svn browsing:
 
 
 
http://freeplane.svn.sourceforge.net/viewvc/freeplane/
 
 
 
(insert the url directly in your browser, see what happens!)
 
 
 
the files you'll get are locally saved copies from the central
 
repository. you can change them as you like, edit files, delete files,
 
even directories - svn will track what you've done and eventually you
 
can 'commit' the files again, which means you want to put your local
 
changes to the central repository.
 
 
 
You don't need to check out whole projects, subversion can also just
 
checkout a directory, or a subset of directory trees.
 
 
 
Try
 
 
 
svn co https://freeplane.svn.sourceforge.net/svnroot/freeplane/freeplane_program/trunk/freeplane/resources/images
 
 
 
for example: it will create the directory of images you want dimitry
 
to put them 'in the main thing which saves our "code"'. This is it,
 
plain and simple.
 
 
 
Only if you want to change something centrally, you'll have to get a
 
username and a password for that.
 
 
 
Of course, if you use eclipse with the subversion plugin, checking out
 
projects is very easy. you can also try www.netbeans.org, which does
 
it perfectly well also.
 
 
 
concerning your problems: seems like you've tried to add metadata
 
stored in .svn directories which typicaly happens if you download
 
'somehow' the whole archive (means: without a client). the data in the
 
.svn directories manage the whole 'versioning' process, but this data
 
mustn't be commited, added or updated, its the task of your svn client
 
to do so.
 
 
 
again, there are many svn howtows out there, read
 
 
 
http://paulstamatiou.com/how-to-subversion-basics
 
 
 
where sb uses a command client svn. google for svn howto, subversion basics etc.
 
 
 
BUT: using svn is tricky sometimes ...
 

Latest revision as of 09:16, 28 June 2020


Requirements

  • You need java 11 or later and gradle >= 6.0

Download gradle

Clone the freeplane repository

git clone https://github.com/freeplane/freeplane.git
cd freeplane

Run gradle

  • Gradle wrapper files are intentionally not committed to the sources but git ignored so that you can add them yourself if you need them.

$ ~/Downloads/gradle-6.0.1/bin/gradle build

Run freeplane

cd BIN
./freeplane.sh # linux
freeplane.bat

Create package

~/git2/freeplane(1.7.x u=)$ ~/Downloads/gradle-6.0.1/bin/gradle clean build dist
ls DIST

Configuring an IDE