~ubuntu-branches/ubuntu/lucid/beagle/lucid

« back to all changes in this revision

Viewing changes to beagled/Lucene.Net/Index/CompoundFileWriter.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-04 00:31:32 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20080504003132-2tkm5o8moo5952ri
Tags: 0.3.7-2ubuntu1
 * Merge from Debian unstable. (LP: #225746) Remaining Ubuntu changes:
  - debian/control:
    + Rename ice{weasel,dove}-beagle to {mozilla,thunderbird}-beagle and
      and update the dependencies accordingly.
    + Change Maintainer to Ubuntu Mono Team.
  - debian/rules:
    + Install the mozilla-beagle and thunderbird-beagle extensions.
  - ice{dove,weasel}.dirs:
    + Renamed to {mozilla,thunderbird}-beagle.dirs.
    + Fixed paths to point to usr/lib/{firefox,thunderbird}

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2004 The Apache Software Foundation
3
 
 * 
4
 
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 
 * you may not use this file except in compliance with the License.
6
 
 * You may obtain a copy of the License at
 
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
 
3
 * contributor license agreements.  See the NOTICE file distributed with
 
4
 * this work for additional information regarding copyright ownership.
 
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
6
 * (the "License"); you may not use this file except in compliance with
 
7
 * the License.  You may obtain a copy of the License at
7
8
 * 
8
9
 * http://www.apache.org/licenses/LICENSE-2.0
9
10
 * 
16
17
 
17
18
using System;
18
19
using Directory = Lucene.Net.Store.Directory;
 
20
using IndexOutput = Lucene.Net.Store.IndexOutput;
19
21
using IndexInput = Lucene.Net.Store.IndexInput;
20
 
using IndexOutput = Lucene.Net.Store.IndexOutput;
21
22
 
22
23
namespace Lucene.Net.Index
23
24
{
45
46
        /// </summary>
46
47
        /// <author>  Dmitry Serebrennikov
47
48
        /// </author>
48
 
        /// <version>  $Id: CompoundFileWriter.cs,v 1.4 2006/10/02 17:08:52 joeshaw Exp $
 
49
        /// <version>  $Id: CompoundFileWriter.java 472959 2006-11-09 16:21:50Z yonik $
49
50
        /// </version>
50
51
        public sealed class CompoundFileWriter
51
52
        {
116
117
                        if (file == null)
117
118
                                throw new System.NullReferenceException("file cannot be null");
118
119
                        
119
 
            try
120
 
            {
121
 
                ids.Add(file, file);
122
 
            }
123
 
            catch (Exception)
124
 
            {
125
 
                throw new System.ArgumentException("File " + file + " already added");
126
 
            }
 
120
                        try
 
121
                        {
 
122
                                ids.Add(file, file);
 
123
                        }
 
124
                        catch (Exception)
 
125
                        {
 
126
                                throw new System.ArgumentException("File " + file + " already added");
 
127
                        }
127
128
                        
128
129
                        FileEntry entry = new FileEntry();
129
130
                        entry.file = file;