Cara upload file JavaScript di Google Code

Salah satu metode yang sering digunakan untuk upload file JavaScript di Google Code adalah melalui program TortoiseSVN.

Google Code dapat dijadikan tempat upload file-file JavaScript untuk kepentingan modifikasi template blog di Blogger/Blogspot. Mungkin Anda sering mengalami kendala ketika mengupload file JavaScript (.js) di Google Code. Ketika melakukan proses upload akan sering muncul halaman Google error 404. Untuk mengatasi masalah tersebut Anda bisa menggunakan aplikasi dari pihak ketiga untuk meng-hosting file Anda di Google Code. Salah satu metode yang sering digunakan untuk upload file JavaScript di Google Code adalah melalui program TortoiseSVN. Silahkan download filenya di situsnya langsung ~ tortoisesvn.net.

Cara menggunakan TortoiseSVN untuk upload file JavaScript di Google Code sangat mudah. Berikut langkah-langkahnya:

  1. Install program TortoiseSVN yang sudah didownload dalam PC Anda.
  2. Setelah proses install selesai. Pada Windows Explorer, klik kanan file yang ingin di-upload, lalu pilih TortoiseSVN > Settings > Edit
    Settings - TortoiseSVN
    Edit Settings TortoiseSVN
  3. Akan tampil file config. Copy & Paste kode berikut di bagian paling bawah setelah kode # Makefile = svn:eol-style=native, lalu save file tersebut dan klik OK pada settings TortoiseSVN.
    [miscellany]
    enable-auto-props = yes
    [auto-props]
    # Code formats
    *.as         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.bat        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
    *.bsh        = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-beanshell
    *.c          = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.cgi        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
    *.cmd        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
    *.cpp        = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.h          = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.java       = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.js         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/javascript
    *.mxml       = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.php        = svn:eol-style=native; svn:keywords=Id Rev Date; svn:mime-type=text/x-php
    *.pl         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl; svn:executable
    *.pm         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl
    *.py         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-python; svn:executable
    *.sh         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-sh; svn:executable
    # Image formats
    *.bmp        = svn:mime-type=image/bmp
    *.gif        = svn:mime-type=image/gif
    *.ico        = svn:mime-type=image/ico
    *.jpeg       = svn:mime-type=image/jpeg
    *.jpg        = svn:mime-type=image/jpeg
    *.png        = svn:mime-type=image/png
    *.tif        = svn:mime-type=image/tiff
    *.tiff       = svn:mime-type=image/tiff
    # Data formats
    *.avi        = svn:mime-type=video/avi
    *.doc        = svn:mime-type=application/msword
    *.eps        = svn:mime-type=application/postscript
    *.gz         = svn:mime-type=application/gzip
    *.jar        = svn:mime-type=application/java-archive
    *.mov        = svn:mime-type=video/quicktime
    *.mp3        = svn:mime-type=audio/mpeg
    *.pdf        = svn:mime-type=application/pdf
    *.ppt        = svn:mime-type=application/vnd.ms-powerpoint
    *.ps         = svn:mime-type=application/postscript
    *.psd        = svn:mime-type=application/photoshop
    *.rtf        = svn:mime-type=text/rtf
    *.swf        = svn:mime-type=application/x-shockwave-flash
    *.tar        = svn:mime-type=application/x-tar
    *.tgz        = svn:mime-type=application/gzip
    *.wav        = svn:mime-type=audio/wav
    *.xls        = svn:mime-type=application/vnd.ms-excel
    *.zip        = svn:mime-type=application/zip
    # Text formats
    .htaccess    = svn:mime-type=text/plain
    *.css        = svn:mime-type=text/css
    *.dtd        = svn:mime-type=text/xml
    *.html       = svn:mime-type=text/html
    *.ini        = svn:mime-type=text/plain
    *.sql        = svn:mime-type=text/x-sql
    *.txt        = svn:mime-type=text/plain
    *.xhtml      = svn:mime-type=text/xhtml+xml
    *.xml        = svn:mime-type=text/xml
    *.xsd        = svn:mime-type=text/xml
    *.xsl        = svn:mime-type=text/xml
    *.xslt       = svn:mime-type=text/xml
    *.xul        = svn:mime-type=text/xul
    *.yml        = svn:mime-type=text/plain
    CHANGES      = svn:mime-type=text/plain
    COPYING      = svn:mime-type=text/plain
    INSTALL      = svn:mime-type=text/plain
    Makefile*    = svn:mime-type=text/plain
    README       = svn:mime-type=text/plain
    TODO         = svn:mime-type=text/plain
    
  4. Kembali ke file dalam Windows Explorer, klik kanan file yang di-upload, pilih opsi TortoiseSVN > Repo-browser.
    Repo-browser - TortoiseSVN
  5. Masukkan url svn Google Code Anda, lalu klik OK.
    URL SVN Checkout Google Code
    Struktur url svn seperti ini https://project-saya.googlecode.com/svn/trunk/. Anda bisa melihat di tab Source akun Google Code. Disitu tersedia juga username (berupa email) dan link untuk mendapatkan password SVN Anda (googlecode.com password).
    SVN Checkout - Google Code
  6. Akan tampil window Repository Browser program TortoiseSVN. Lakukan drag & drop file Anda dari Windows Explorer ke Repository Browser.
    Repository Browser - TortoiseSVN
  7. Anda akan diminta untuk mengisi username dan password svn Google Code Anda agar proses upload file JavaScript di Google Code berjalan.
  8. Jika proses upload selesai, untuk mengambil url file yang Anda upload, klik kanan file dalam Repository Browser lalu pilih Copy Url to Clipboard.

Untuk melihat hasil upload file dalam akun Google Code, lihat di bagian tab Source > Browse.

Author: Jevuska

Rachmanuddin Chair Yahya a.k.a Jevuska is the founder of Jevuska.Com, a qualified web about offering medical articles, blogging, tips, and tutorial of WordPress. Having written for Jevuska since 2007.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use tag [php] to add code, e.g. [php]<?php echo $var; ?>[/php]